修改nodeid为字符串

This commit is contained in:
boyce
2024-04-10 17:30:52 +08:00
parent 161a67c8a1
commit 0cf935ffa4
16 changed files with 283 additions and 283 deletions

View File

@@ -40,8 +40,8 @@ type IRealClient interface {
}
type Client struct {
clientId uint32
nodeId int
clientId uint32
nodeId string
pendingLock sync.RWMutex
startSeq uint64
pending map[uint64]*Call
@@ -176,7 +176,7 @@ func (bc *Client) generateSeq() uint64 {
return atomic.AddUint64(&bc.startSeq, 1)
}
func (client *Client) GetNodeId() int {
func (client *Client) GetNodeId() string {
return client.nodeId
}