Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-code committed Jul 17, 2024
1 parent 56dbce1 commit 7de67fa
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions backend/app/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ def init_web3(app):
# w3.middleware_onion.add(middleware.time_based_cache_middleware)
# w3.middleware_onion.add(middleware.latest_block_based_cache_middleware)
# w3.middleware_onion.add(middleware.simple_cache_middleware)
# w3.middleware_onion.add(
# _create_cache(
# app, 600, is_glm_or_projects_contract, _generic_should_cache_web3
# )
# )
# w3.middleware_onion.add(
# _create_cache(app, 60, is_epochs_or_deposits_contract, (lambda x: True))
# )
# w3.middleware_onion.add(
# _create_cache(app, 20, is_get_block_by_number, _generic_should_cache_web3)
# )
w3.middleware_onion.add(
_create_cache(
app, 600, is_glm_or_projects_contract, _generic_should_cache_web3
)
)
w3.middleware_onion.add(
_create_cache(app, 60, is_epochs_or_deposits_contract, (lambda x: True))
)
w3.middleware_onion.add(
_create_cache(app, 20, is_get_block_by_number, _generic_should_cache_web3)
)

glm.init_web3(w3, app.config["GLM_CONTRACT_ADDRESS"])
epochs.init_web3(w3, app.config["EPOCHS_CONTRACT_ADDRESS"])
Expand Down

0 comments on commit 7de67fa

Please sign in to comment.