优化短线后cpu飙升问题
This commit is contained in:
parent
679154720f
commit
2c62f5d38a
|
@ -95,7 +95,7 @@ func (kk KafkaV2Mq) Consume(name string, hand interface{}, ci int) {
|
|||
go func() {
|
||||
for {
|
||||
if atomic.LoadInt32(tcppool.TcpFactory.Full) == 1 {
|
||||
utils.Log(nil, "对列阻塞")
|
||||
//utils.Log(nil, "对列阻塞")
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
continue
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue