-
Notifications
You must be signed in to change notification settings - Fork 243
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
Problem: need run fixdata multiple times when no timestamp checking #1748
Conversation
query with GetCFWithTS to compare both timestamp and key
WalkthroughThis pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FixDataHandler
participant BatchManager
participant Database
User->>FixDataHandler: Invoke fixdata with dry-run
FixDataHandler->>BatchManager: Check dry-run option
BatchManager-->>FixDataHandler: Skip initialization & flushing
FixDataHandler->>Database: (Optional) Retrieve required data
FixDataHandler-->>User: Return dry-run result
sequenceDiagram
participant Caller
participant Store
participant DB
Caller->>Store: Call fixDataStore
Store->>DB: GetCFWithTS(key)
DB-->>Store: Return (oldValue, oldTimestamp)
Store->>Store: Compare value & timestamp against expected pair
Note right of Store: Free oldValue and oldTimestamp memory
Store-->>Caller: Return comparison result
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (16)
🔇 Additional comments (2)
✨ Finishing Touches
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1748 +/- ##
===========================================
+ Coverage 16.87% 35.56% +18.68%
===========================================
Files 72 126 +54
Lines 6163 11920 +5757
===========================================
+ Hits 1040 4239 +3199
- Misses 5000 7256 +2256
- Partials 123 425 +302
|
…rypto-org-chain#1748) * Problem: need run fixdata multiple times when no timestamp checking query with GetCFWithTS to compare both timestamp and key * cleanup * doc
query with GetCFWithTS to compare both timestamp and key
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit