From 81413c4f0a39f4985e41f415a88f67bc335bf61a Mon Sep 17 00:00:00 2001 From: Samir Patel Date: Fri, 28 May 2021 18:49:27 -0500 Subject: [PATCH] Remove recalculation on new index --- api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api.go b/api.go index 31e1302bd..85d8dcbdc 100644 --- a/api.go +++ b/api.go @@ -234,7 +234,6 @@ func (api *API) CreateIndex(ctx context.Context, indexName string, options Index return nil, errors.Wrap(err, "creating index") } - api.ResetUsageCache() api.holder.Stats.Count(MetricCreateIndex, 1, 1.0) return index, nil }