Skip to content

Commit

Permalink
fix protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Dec 21, 2023
1 parent 82d2814 commit b296544
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion servant/protocol
Submodule protocol updated 1 files
+3 −4 servant/QueryF.tars
8 changes: 4 additions & 4 deletions unit-test/server/framework/QueryImp.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ class QueryImp: public QueryF
*/
Int32 findObjectByIdInSameSet(const std::string & id,const std::string & setId,vector<tars::EndpointF> &activeEp,vector<tars::EndpointF> &inactiveEp, tars::CurrentPtr current);

/** 注册id变化的通知, 通知时会通知所有的变化内容(企业版功能)
*
* @param ids 对象名称
/** 注册数据通知, 同时上报本地缓存数据的最后时间, 如果服务端发现变化则全量推送(企业版功能)
* 可以定时上报数据
* @param timestamp <数据类型, 最后数据时间戳>
* @param name 当前模块名称
* @return: 0-成功 others-失败
*/
Int32 registerChange(const vector<string> &ids, const string &name, CurrentPtr current) { return -1; };
Int32 registerChange(const map<string, string> &timestamp, const string &name, CurrentPtr current) { return -1; };

/** 注册id变化的通知, 通知时后需要自己主动find(企业版功能)
*
Expand Down

0 comments on commit b296544

Please sign in to comment.