[skip ci] Fix golint warning of metrics (#10911)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-10-29 17:47:39 +08:00 committed by GitHub
parent 084f1dcee3
commit 614e95fbf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ import (
)
// TODO(dragondriver): load from config file
// DefaultMetricsRetention defines the default retention of metrics cache.
const DefaultMetricsRetention = time.Second * 5
// TODO(dragondriver): we can use a map to manage the metrics if there are too many kind metrics