Skip to content

Commit

Permalink
配置梳理
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Nov 15, 2023
1 parent 6221bef commit 70d3308
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion script/agent/redis_agent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ end


function RedisAgent:autoinc_id()
return router_mgr:call_redis_hash(mrandom(), "rpc_mongo_autoinc_id")
return router_mgr:call_redis_hash(mrandom(), "rpc_redis_autoinc_id")
end

------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion script/store/redis_mgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function RedisMgr:execute(cmd, ...)
end

function RedisMgr:autoinc_id()
local aok, origin_id = self.redis_db:execute({ "INCR", AUTOINCKEY })
local aok, origin_id = self.redis_db:execute("INCR", AUTOINCKEY)
if not aok then
return REDIS_FAILED, origin_id
end
Expand Down
2 changes: 1 addition & 1 deletion server/login/login_dao.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function LoginDao:__init()
end

function LoginDao:get_autoinc_id(user_id)
local aok, acode, role_id = redis_agent:get_autoinc_id()
local aok, acode, role_id = redis_agent:autoinc_id()
if qfailed(acode, aok) then
log_err("[LoginDao][get_autoinc_id] user_id: {} get_autoinc_id failed! code: {}, res: {}", user_id, acode, role_id)
return false
Expand Down

0 comments on commit 70d3308

Please sign in to comment.