diff --git a/store/localcachelayer/user_layer.go b/store/localcachelayer/user_layer.go index 1fac2cf2f1..1979f8ad18 100644 --- a/store/localcachelayer/user_layer.go +++ b/store/localcachelayer/user_layer.go @@ -136,11 +136,6 @@ func (s *LocalCacheUserStore) GetProfileByIds(ctx context.Context, userIds []str } } - if s.rootStore.metrics != nil { - s.rootStore.metrics.AddMemCacheHitCounter("Profile By Ids", float64(len(users))) - s.rootStore.metrics.AddMemCacheMissCounter("Profile By Ids", float64(len(remainingUserIds))) - } - if len(remainingUserIds) > 0 { if fromMaster { ctx = sqlstore.WithMaster(ctx)