@@ -83,20 +83,18 @@ int SocketMapInsert(const SocketMapKey& key, SocketId* id,
8383 const std::shared_ptr<SocketSSLContext>& ssl_ctx,
8484 bool use_rdma,
8585 const HealthCheckOption& hc_option,
86- const butil::EndPoint& client_endpoint );
86+ const std::string& device_name );
8787
8888inline int SocketMapInsert (const SocketMapKey& key, SocketId* id,
8989 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {
9090 HealthCheckOption hc_option;
91- butil::EndPoint endpoint;
92- return SocketMapInsert (key, id, ssl_ctx, false , hc_option, endpoint);
91+ return SocketMapInsert (key, id, ssl_ctx, false , hc_option, " " );
9392}
9493
9594inline int SocketMapInsert (const SocketMapKey& key, SocketId* id) {
9695 std::shared_ptr<SocketSSLContext> empty_ptr;
9796 HealthCheckOption hc_option;
98- butil::EndPoint endpoint;
99- return SocketMapInsert (key, id, empty_ptr, false , hc_option, endpoint);
97+ return SocketMapInsert (key, id, empty_ptr, false , hc_option, " " );
10098}
10199
102100// Find the SocketId associated with `key'.
@@ -159,19 +157,17 @@ class SocketMap {
159157 const std::shared_ptr<SocketSSLContext>& ssl_ctx,
160158 bool use_rdma,
161159 const HealthCheckOption& hc_option,
162- const butil::EndPoint& client_endpoint );
160+ const std::string& device_name );
163161
164162 int Insert (const SocketMapKey& key, SocketId* id,
165163 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {
166164 HealthCheckOption hc_option;
167- butil::EndPoint endpoint;
168- return Insert (key, id, ssl_ctx, false , hc_option, endpoint);
165+ return Insert (key, id, ssl_ctx, false , hc_option, " " );
169166 }
170167 int Insert (const SocketMapKey& key, SocketId* id) {
171168 std::shared_ptr<SocketSSLContext> empty_ptr;
172169 HealthCheckOption hc_option;
173- butil::EndPoint endpoint;
174- return Insert (key, id, empty_ptr, false , hc_option, endpoint);
170+ return Insert (key, id, empty_ptr, false , hc_option, " " );
175171 }
176172
177173 void Remove (const SocketMapKey& key, SocketId expected_id);
0 commit comments