some lint fixes
This commit is contained in:
parent
88ac31dcd9
commit
9f4fda3c8b
11 changed files with 36 additions and 40 deletions
|
|
@ -10,7 +10,7 @@ type countMutex struct {
|
|||
c uint64
|
||||
}
|
||||
|
||||
func (cm *countMutex) Lock() (uint64, uint64, bool) {
|
||||
func (cm *countMutex) Lock() (max, c uint64, ok bool) {
|
||||
if atomic.CompareAndSwapUint64(&cm.mu, 0, 1) {
|
||||
return 0, 0, true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue