@@ -83,18 +83,21 @@ 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,
8687 const std::string& device_name);
8788
8889inline int SocketMapInsert (const SocketMapKey& key, SocketId* id,
8990 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {
9091 HealthCheckOption hc_option;
91- return SocketMapInsert (key, id, ssl_ctx, false , hc_option, " " );
92+ butil::EndPoint endpoint;
93+ return SocketMapInsert (key, id, ssl_ctx, false , hc_option, endpoint, " " );
9294}
9395
9496inline int SocketMapInsert (const SocketMapKey& key, SocketId* id) {
9597 std::shared_ptr<SocketSSLContext> empty_ptr;
9698 HealthCheckOption hc_option;
97- return SocketMapInsert (key, id, empty_ptr, false , hc_option, " " );
99+ butil::EndPoint endpoint;
100+ return SocketMapInsert (key, id, empty_ptr, false , hc_option, endpoint, " " );
98101}
99102
100103// Find the SocketId associated with `key'.
@@ -157,17 +160,20 @@ class SocketMap {
157160 const std::shared_ptr<SocketSSLContext>& ssl_ctx,
158161 bool use_rdma,
159162 const HealthCheckOption& hc_option,
163+ const butil::EndPoint& client_endpoint,
160164 const std::string& device_name);
161165
162166 int Insert (const SocketMapKey& key, SocketId* id,
163167 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {
164168 HealthCheckOption hc_option;
165- return Insert (key, id, ssl_ctx, false , hc_option, " " );
169+ butil::EndPoint endpoint;
170+ return Insert (key, id, ssl_ctx, false , hc_option, endpoint, " " );
166171 }
167172 int Insert (const SocketMapKey& key, SocketId* id) {
168173 std::shared_ptr<SocketSSLContext> empty_ptr;
169174 HealthCheckOption hc_option;
170- return Insert (key, id, empty_ptr, false , hc_option, " " );
175+ butil::EndPoint endpoint;
176+ return Insert (key, id, empty_ptr, false , hc_option, endpoint, " " );
171177 }
172178
173179 void Remove (const SocketMapKey& key, SocketId expected_id);
0 commit comments