-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change >=2 to >2 for stale pnl accounts #1704
Conversation
WalkthroughThe change in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- indexer/services/roundtable/src/tasks/pnl-instrumentation.ts (1 hunks)
Additional comments not posted (2)
indexer/services/roundtable/src/tasks/pnl-instrumentation.ts (2)
Line range hint
1-1
: The overall structure and logic of the function are well-implemented.
77-77
: Change from>=
to>
correctly implemented to adjust the staleness threshold.Verification successful
The change from
>= 2
to> 2
forhoursSinceLastTransfer
has been correctly identified and implemented. The search results confirm that the only occurrence ofhoursSinceLastTransfer > 2
is in the fileindexer/services/roundtable/src/tasks/pnl-instrumentation.ts
. No other instances ofhoursSinceLastTransfer >= 2
were found, indicating that the change is isolated and should not have unexpected side effects.
indexer/services/roundtable/src/tasks/pnl-instrumentation.ts
:if (hoursSinceLastTransfer > 2)
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the impact of the threshold change on the behavior of the system. # Test: Search for function calls that might be affected by this change. Expect: No unexpected side effects. rg --type typescript $'hoursSinceLastTransfer > 2'Length of output: 86
Script:
#!/bin/bash # Description: Verify the impact of the threshold change on the behavior of the system. # Correcting file type and searching for the pattern. rg --type ts 'hoursSinceLastTransfer > 2' rg --type ts 'hoursSinceLastTransfer >= 2'Length of output: 187
@Mergifyio backport release/indexer/v5.x |
✅ Backports have been created
|
(cherry picked from commit 2142cfa)
Changelist
Change >= to > for stale pnl accounts
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit