Skip to content

Commit

Permalink
updated the reference for timeout value in function
Browse files Browse the repository at this point in the history
  • Loading branch information
DraKen0009 committed Sep 7, 2024
1 parent 5a10159 commit 8a21342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion care/utils/assetintegration/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, meta):
self.host = self.meta["local_ip_address"]
self.middleware_hostname = self.meta["middleware_hostname"]
self.insecure_connection = self.meta.get("insecure_connection", False)
self.timeout = getattr(settings, "MIDDLEWARE_API_TIMEOUT", 20)
self.timeout = settings.MIDDLEWARE_REQUEST_TIMEOUT

Check warning on line 19 in care/utils/assetintegration/base.py

View check run for this annotation

Codecov / codecov/patch

care/utils/assetintegration/base.py#L19

Added line #L19 was not covered by tests

def handle_action(self, action):
pass
Expand Down
3 changes: 1 addition & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths
LOCALE_PATHS = [str(BASE_DIR / "locale")]


LANGUAGES = [
("en-us", _("English")),
("ml", _("Malayalam")),
Expand Down Expand Up @@ -665,4 +664,4 @@
)

# Timeout for middleware request (in seconds)
MIDDLEWARE_API_TIMEOUT = 20
MIDDLEWARE_REQUEST_TIMEOUT = env.int("MIDDLEWARE_REQUEST_TIMEOUT", 20)

0 comments on commit 8a21342

Please sign in to comment.