mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
fix GetCounter method returns
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()
|
c.mu.Lock()
|
||||||
defer c.mu.Unlock()
|
defer c.mu.Unlock()
|
||||||
return c.vals[k]
|
return c.vals[k]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user