mirror of
https://github.com/golang/go.git
synced 2024-11-22 05:40:42 +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()
|
||||
defer c.mu.Unlock()
|
||||
return c.vals[k]
|
||||
|
Loading…
Reference in New Issue
Block a user