Skip to content

Commit

Permalink
Merge pull request #96 from HathorNetwork/dev
Browse files Browse the repository at this point in the history
Release v0.1.10
  • Loading branch information
r4mmer authored Oct 14, 2021
2 parents 6cec9cb + 798bcf1 commit e4c77e7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions common/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def default(cls) -> 'LogRenderer':
REDIS_HOST = config('REDIS_HOST', default=None)
REDIS_PORT = config('REDIS_PORT', default=None)
REDIS_DB = config('REDIS_DB', default='0', cast=int)
REDIS_TIMEOUT = config('REDIS_TIMEOUT', default='2', cast=int)

METADATA_BUCKET = config('METADATA_BUCKET', default=None)

Expand Down
5 changes: 3 additions & 2 deletions gateways/clients/cache_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from redis import StrictRedis

from common.configuration import REDIS_DB, REDIS_HOST, REDIS_KEY_PREFIX, REDIS_PORT
from common.configuration import REDIS_DB, REDIS_HOST, REDIS_KEY_PREFIX, REDIS_PORT, REDIS_TIMEOUT

NODE_COLLECTION_NAME = 'node'
NETWORK_COLLECTION_NAME = 'network'
Expand All @@ -17,7 +17,8 @@ def __init__(self) -> None:
client_args = {
'host': REDIS_HOST,
'port': REDIS_PORT,
'db': REDIS_DB
'db': REDIS_DB,
'socket_timeout': REDIS_TIMEOUT,
}

client_args = {k: v for k, v in client_args.items() if v is not None}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hathor-explorer-service",
"version": "0.1.8",
"version": "0.1.10",
"description": "Hathor Explorer Service Serverless deps",
"dependencies": {
"serverless": "^2.44.0",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hathor-explorer-service"
version = "0.1.8"
version = "0.1.10"
description = ""
authors = ["Hathor Labs <[email protected]>"]
license = "MIT"
Expand Down
8 changes: 8 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ functions:

node_api_get_address_balance:
handler: handlers/node_api.get_address_balance
timeout: 15
maximumRetryAttempts: 0
package:
patterns:
- 'handlers/node_api.py'
Expand All @@ -172,6 +174,8 @@ functions:

node_api_get_address_search:
handler: handlers/node_api.get_address_search
timeout: 15
maximumRetryAttempts: 0
package:
patterns:
- 'handlers/node_api.py'
Expand All @@ -187,3 +191,7 @@ functions:
ttlInSeconds: 300
cacheKeyParameters:
- name: request.querystring.address
- name: request.querystring.count
- name: request.querystring.token
- name: request.querystring.page
- name: request.querystring.hash

0 comments on commit e4c77e7

Please sign in to comment.