Uh oh!
There was an error while loading. Please reload this page.
fix: optimize tipset cache usage - #6781
Conversation
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (5)
WalkthroughCaches many environment-variable truthiness checks via a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/auth/mod.rs`:
- Around line 47-52: The static LazyLock DISABLE_EXP_VALIDATION causes
verify_token() behavior to be cached process-wide and makes test results
order-dependent; change verify_token() to read
is_env_truthy("FOREST_JWT_DISABLE_EXP_VALIDATION") at call time instead of using
the static, or replace DISABLE_EXP_VALIDATION with a non-static helper function
(e.g., should_disable_exp_validation()) that calls is_env_truthy() each
invocation; update the code paths in verify_token() that reference
DISABLE_EXP_VALIDATION to call the helper or inline is_env_truthy so env changes
during tests take effect.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: aa59d859-cc5d-4938-8b5a-a1371d86b23a
📒 Files selected for processing (18)
src/auth/mod.rssrc/beacon/drand.rssrc/chain/store/index.rssrc/chain_sync/chain_follower.rssrc/cli_shared/cli/config.rssrc/dev/subcommands/state_cmd.rssrc/f3/mod.rssrc/fil_cns/validation.rssrc/libp2p/chain_exchange/provider.rssrc/rpc/methods/chain.rssrc/rpc/methods/eth.rssrc/rpc/methods/eth/filter/mod.rssrc/rpc/methods/f3.rssrc/state_manager/mod.rssrc/tool/subcommands/snapshot_cmd.rssrc/utils/io/mmap.rssrc/utils/proofs_api/parameters.rssrc/utils/proofs_api/paramfetch.rs
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Performance
Refactor