коммит произвёл
GitHub
родитель
f290745496
Коммит
c3ed07e679
@@ -30,7 +30,7 @@ func testElasticsearch(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
// we set BulkIndexingTimeWindowSeconds to a random value to avoid failing on the nil check
|
||||
// TODO: remove this hack once we remove BulkIndexingTimeWindowSeconds from the config.
|
||||
if cfg.ElasticsearchSettings.BulkIndexingTimeWindowSeconds == nil {
|
||||
cfg.ElasticsearchSettings.BulkIndexingTimeWindowSeconds = model.NewInt(0)
|
||||
cfg.ElasticsearchSettings.BulkIndexingTimeWindowSeconds = model.NewPointer(0)
|
||||
}
|
||||
if checkHasNilFields(&cfg.ElasticsearchSettings) {
|
||||
c.Err = model.NewAppError("testElasticsearch", "api.elasticsearch.test_elasticsearch_settings_nil.app_error", nil, "", http.StatusBadRequest)
|
||||
|
||||
Ссылка в новой задаче
Block a user