some lint fixes

This commit is contained in:
ston1th 2021-11-05 22:10:52 +01:00
commit 9f4fda3c8b
11 changed files with 36 additions and 40 deletions

View file

@ -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
}