-
Notifications
You must be signed in to change notification settings - Fork 182
chore: refactor cur_tipset in MessagePool to use RwLock instead Mutex #5901
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
Conversation
WalkthroughThe changes refactor the synchronization mechanism for the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant MessagePool
participant Tipset
Client->>MessagePool: current_tipset()
MessagePool->>Tipset: (acquires RwLock read)
MessagePool-->>Client: Arc<Tipset> clone
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (14)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
e609994 to
b5bf7e2
Compare
Summary of changes
During invetigating #5812 I made some refactoring to the
cur_tipsetinMessagePoolto useRwLockinsteadMutexsince there're quite a few read-only operations.Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Summary by CodeRabbit