mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
更正connection丢失的问题
根据test文件中,输入端口号为number类型,此处应该使用d%,否则只format直进来ip,容易造成同一个ip地址的connection丢失。
This commit is contained in:
@@ -33,7 +33,7 @@ function _M.new(startup_nodes,opt)
|
||||
end
|
||||
|
||||
local function nodename(node)
|
||||
return string.format("%s:%s",node.host,node.port)
|
||||
return string.format("%s:%d",node.host,node.port)
|
||||
end
|
||||
|
||||
function rediscluster:get_redis_link(node)
|
||||
|
||||
Reference in New Issue
Block a user