|
|
@ -51,7 +51,7 @@ updateScore(RankType, Key, Score) -> |
|
|
|
WorkName = ?ranksCfg:getV(erlang:phash2(Key, ?ranksCfg:getV(?workCnt))), |
|
|
|
%% 这里就看业务层面是否需要同步更新分数了 |
|
|
|
%% 同步请求 |
|
|
|
%% gen_srv:clfn(WorkName, rank_work, mUpdateScore, [Key, RankPos, Score]), |
|
|
|
% gen_srv:clfn(WorkName, rankWork, mUpdateScore, [RankType, Key, Score], 1000000000). |
|
|
|
%% 异步请求 |
|
|
|
gen_srv:csfn(WorkName, rankWork, mUpdateScore, [RankType, Key, Score]). |
|
|
|
|
|
|
|