-
Notifications
You must be signed in to change notification settings - Fork 11
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
replace bounded channel with unbounded channel #18
Conversation
src/backend.rs
Outdated
type AccountInfoSender = UnboundedSender<DatabaseResult<AccountInfo>>; | ||
type StorageSender = UnboundedSender<DatabaseResult<U256>>; | ||
type BlockHashSender = UnboundedSender<DatabaseResult<B256>>; | ||
type FullBlockSender = UnboundedSender<DatabaseResult<Block>>; | ||
type TransactionSender = UnboundedSender<DatabaseResult<WithOtherFields<Transaction>>>; |
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.
ah sorry, perhaps I wasn't clear enough on the issue, these oneshots are fine and we should keep using oneshot here,
the channel that we want to convert is this one
foundry-fork-db/src/backend.rs
Line 649 in 40445d9
let (backend, backend_rx) = channel(1); |
foundry-fork-db/src/backend.rs
Lines 572 to 573 in 40445d9
/// channel used for sending commands related to database operations | |
backend: Sender<BackendRequest>, |
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.
It's my own fault. Your instruction is very clear. I need to dive into details. Thanks for your guiding. PTAL.
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.
lgtm, pending @mattsse
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.
nice
Motivation
Closes #14
Solution
PR Checklist