refactor(fight): 移除调试打印语句并优化阻塞策略 移除了effect_attr.go中的调试println语句,将注释掉相关的日志输出, 同时在pack.go中更新了锁策略,从SleepBlockStrategy切换到 ConditionBlockStrategy,并移除了未使用的time包导入 ```
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"context"
|
||||
|
||||
@@ -245,7 +244,7 @@ func NewClientData(c gnet.Conn) *ClientData {
|
||||
cd.LF = lockfree.NewLockfree(
|
||||
8,
|
||||
cd,
|
||||
lockfree.NewSleepBlockStrategy(time.Millisecond),
|
||||
lockfree.NewConditionBlockStrategy(),
|
||||
)
|
||||
// // // 启动Lockfree
|
||||
if err := cd.LF.Start(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user