mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
try connect only once at first time
This commit is contained in:
@@ -103,7 +103,7 @@ function mongo.client( conf )
|
||||
auth = mongo_auth(conf),
|
||||
}
|
||||
setmetatable(obj, client_meta)
|
||||
obj.__sock:connect()
|
||||
obj.__sock:connect(true) -- try connect only once
|
||||
return obj
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user