Skip to content

Commit

Permalink
filter config
Browse files Browse the repository at this point in the history
  • Loading branch information
luweizheng committed Aug 13, 2024
1 parent c1a6c14 commit b27fccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/xoscar/backends/communication/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ def channel_type(self) -> int:
@classmethod
def parse_config(cls, config: dict) -> dict:
# we only need the following config
keys_of_interest = ['listen_elastic_ip', 'address', 'host', 'port']
keys_of_interest = ["listen_elastic_ip", "address", "host", "port"]
parsed_config = {key: config[key] for key in keys_of_interest if key in config}

return parsed_config

@staticmethod
Expand Down

0 comments on commit b27fccf

Please sign in to comment.