Skip to content

Commit

Permalink
chore: Add techdebt to enable caching flags
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Feb 6, 2025
1 parent 410b1e4 commit a10718b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/relayer/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ func setupRelayerDependencies(
config.NewSupplyDelegationClientFn(), // leaf

// Setup the params caches and configure them to clear on new blocks.
// TODO_TECHDEBT: Consider a flag to change client queriers caching behavior.
// This would allow to easily switch between caching and non-caching queriers
// for benchmarking purposes.
config.NewSupplyParamsCacheFn[sharedtypes.Params](cache.WithNewBlockCacheClearing),
config.NewSupplyParamsCacheFn[apptypes.Params](cache.WithNewBlockCacheClearing),
config.NewSupplyParamsCacheFn[sessiontypes.Params](cache.WithNewBlockCacheClearing),
Expand Down

0 comments on commit a10718b

Please sign in to comment.