Minor fixes

This commit is contained in:
世界
2022-09-29 22:27:16 +08:00
parent 3e5bee6faf
commit 968430c338
3 changed files with 5 additions and 3 deletions

View File

@@ -181,6 +181,7 @@ func (s *StatsService) GetSysStats(ctx context.Context, request *SysStatsRequest
func (s *StatsService) mustEmbedUnimplementedStatsServiceServer() {
}
//nolint:staticcheck
func (s *StatsService) loadOrCreateCounter(name string, counter *atomic.Int64) *atomic.Int64 {
counter, loaded := s.counters[name]
if !loaded {