mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-12 20:23:52 +08:00
模块化上传驱动,使用泛型优化工具库降低冗余
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package consts
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
TCPMsgCodeSuccess = 2000 // 成功的状态码
|
||||
)
|
||||
@@ -21,5 +19,6 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
TCPRpcTimeout = time.Second * 10 // rpc通讯超时时间, 默认10s
|
||||
TCPHeartbeatTimeout = 300 // tcp心跳超时,默认300s
|
||||
TCPRpcTimeout = 10 // rpc通讯超时时间, 默认10s
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user