Skip to content

Commit

Permalink
chg client
Browse files Browse the repository at this point in the history
  • Loading branch information
MacBookAirM2 committed Mar 27, 2023
1 parent 5937e70 commit b36e21c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions znet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func (c *Client) Start() {
c.msgHandler.AddInterceptor(c.decoder)
}

//此处必须将msgHandler注册为责任链最后一个元素
c.msgHandler.AddInterceptor(c.msgHandler.(*MsgHandle))

//客户端将协程池关闭
utils.GlobalObject.WorkerPoolSize = 0

Expand Down

0 comments on commit b36e21c

Please sign in to comment.