日志恢复
This commit is contained in:
parent
0e8e530ff3
commit
a685758ca9
|
@ -1,6 +1,8 @@
|
||||||
package synchronization
|
package synchronization
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/kercylan98/minotaur/utils/log"
|
||||||
|
"go.uber.org/zap"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -37,7 +39,7 @@ func (slf *Pool[T]) Get() T {
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
slf.mutex.Unlock()
|
slf.mutex.Unlock()
|
||||||
//log.Warn("Pool", zap.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size"))
|
log.Warn("Pool", zap.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size"))
|
||||||
return slf.generator()
|
return slf.generator()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue