Skip to content

Commit ad99946

Browse files
committed
code format
1 parent 603db00 commit ad99946

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coordinator/gscoordinator/coordinator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(self, launcher, dangling_seconds, log_level="INFO"):
146146

147147
# dangling check
148148
self._dangling_seconds = dangling_seconds
149-
if (self._dangling_seconds != -1):
149+
if self._dangling_seconds != -1:
150150
self._dangling_detecting_timer = threading.Timer(
151151
interval=self._dangling_seconds, function=self._cleanup, args=(True,)
152152
)
@@ -616,7 +616,7 @@ def _get_engine_config(self):
616616
config["vineyard_service_name"] = self._launcher.get_vineyard_service_name()
617617
config["vineyard_rpc_endpoint"] = self._launcher.get_vineyard_rpc_endpoint()
618618
else:
619-
config['engine_hosts'] = self._launcher.hosts
619+
config["engine_hosts"] = self._launcher.hosts
620620
return config
621621

622622
def _compile_lib_and_distribute(self, compile_func, lib_name, op):

python/graphscope/client/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def info(self):
390390
else:
391391
info["type"] = "hosts"
392392
if self._config_params["addr"] is not None:
393-
info["engine_hosts"] = self._engine_config['engine_hosts']
393+
info["engine_hosts"] = self._engine_config["engine_hosts"]
394394
else:
395395
info["engine_hosts"] = ",".join(self._config_params["hosts"])
396396

0 commit comments

Comments
 (0)