Skip to content

Commit 71739ed

Browse files
authored
Merge pull request #3915 from hove-io/jormungandr_instance_fast_timeout_s
rename JORMUNGANDR_INSTANCE_FAST_TIMEOUT_S
2 parents 05bdfdb + 8dd65df commit 71739ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/jormungandr/jormungandr/default_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
INSTANCE_TIMEOUT = float(os.getenv('JORMUNGANDR_INSTANCE_TIMEOUT_S', 10))
16-
INSTANCE_FAST_TIMEOUT = float(os.getenv('JORMUNGANDR_INSTANCE_FAST_TIMEOUT_S', 1))
16+
PLACE_FAST_TIMEOUT = float(os.getenv('JORMUNGANDR_PLACE_FAST_TIMEOUT_S', 1))
1717

1818
# Patern that matches Jormungandr configuration files
1919
#  ex: '*.json' will match all json files within "INSTANCES_DIR" directory

source/jormungandr/jormungandr/instance.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def get_id(self, id_):
758758
req = request_pb2.Request()
759759
req.requested_api = type_pb2.place_uri
760760
req.place_uri.uri = id_
761-
return self.send_and_receive(req, timeout=app.config.get(str('INSTANCE_FAST_TIMEOUT'), 1))
761+
return self.send_and_receive(req, timeout=app.config.get(str('PLACE_FAST_TIMEOUT'), 1))
762762

763763
def has_id(self, id_):
764764
"""
@@ -796,7 +796,7 @@ def get_external_codes(self, type_, id_):
796796
req.place_code.type_code = "external_code"
797797
req.place_code.code = id_
798798
# we set the timeout to 1s
799-
return self.send_and_receive(req, timeout=app.config.get(str('INSTANCE_FAST_TIMEOUT'), 1))
799+
return self.send_and_receive(req, timeout=app.config.get(str('PLACE_FAST_TIMEOUT'), 1))
800800

801801
def has_external_code(self, type_, id_):
802802
"""

0 commit comments

Comments
 (0)