@@ -138,26 +138,26 @@ class PSEnvironment {
138
138
139
139
virtual uint64_t GetLocalHostSign () { return 0 ; }
140
140
virtual std::vector<PSHost> GetPsServers () const { return _ps_server_list; }
141
- virtual int32_t RegistePsServer (const std::string &ip,
142
- uint32_t port,
143
- int32_t rank) {
144
- return RegistePsHost (ip, port, rank, _ps_server_list, _ps_server_sign_set);
141
+ virtual int32_t RegisterPsServer (const std::string &ip,
142
+ uint32_t port,
143
+ int32_t rank) {
144
+ return RegisterPsHost (ip, port, rank, _ps_server_list, _ps_server_sign_set);
145
145
}
146
146
147
147
virtual std::vector<PSHost> GetPsClients () const { return _ps_client_list; }
148
- virtual int32_t RegistePsClient (const std::string &ip,
149
- uint32_t port,
150
- int32_t rank) {
151
- return RegistePsHost (ip, port, rank, _ps_client_list, _ps_client_sign_set);
148
+ virtual int32_t RegisterPsClient (const std::string &ip,
149
+ uint32_t port,
150
+ int32_t rank) {
151
+ return RegisterPsHost (ip, port, rank, _ps_client_list, _ps_client_sign_set);
152
152
}
153
153
154
154
virtual std::vector<PSHost> GetCoordinators () const {
155
155
return _coordinator_list;
156
156
}
157
- virtual int32_t RegisteCoordinatorClient (const std::string &ip,
158
- uint32_t port,
159
- int32_t rank) {
160
- return RegistePsHost (
157
+ virtual int32_t RegisterCoordinatorClient (const std::string &ip,
158
+ uint32_t port,
159
+ int32_t rank) {
160
+ return RegisterPsHost (
161
161
ip, port, rank, _coordinator_list, _coordinator_sign_set);
162
162
}
163
163
@@ -186,7 +186,7 @@ class PSEnvironment {
186
186
187
187
protected:
188
188
// 注册一个host // NOLINT
189
- virtual int32_t RegistePsHost (
189
+ virtual int32_t RegisterPsHost (
190
190
const std::string &ip,
191
191
uint32_t port,
192
192
int32_t rank,
0 commit comments