fix GetCounter method returns

nevalerii 2023-05-26 10:42:12 +02:00
parent 0a8c662fca
commit bfcf272f2b

@ -93,7 +93,7 @@ type Counters struct {
...
func (c *Counters) GetCounter(k Key) (count Counter, exists bool) {
func (c *Counters) GetCounter(k Key) Counter {
c.mu.Lock()
defer c.mu.Unlock()
return c.vals[k]