-
Notifications
You must be signed in to change notification settings - Fork 115
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
Allow runtimes to have a custom dispatcher #2749
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2749 +/- ##
==========================================
- Coverage 62.74% 62.29% -0.45%
==========================================
Files 384 384
Lines 36258 36258
==========================================
- Hits 22749 22588 -161
- Misses 10616 10815 +199
+ Partials 2893 2855 -38
Continue to review full report at Codecov.
|
3cc6176
to
5f03879
Compare
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.
this seems straightforward
runtime/src/dispatcher.rs
Outdated
{ | ||
txn | ||
} else { | ||
Box::new(TxnMethDispatcher::new()) |
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.
what if we made the initializer do this internally
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.
Not sure we can... whoever constructs a concrete dispatcher will need its specific interface, so it would be problematic if the initializer itself returned the general boxed trait already.
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.
ok what about yet another implementation that's specifically a no-op dispatcher
5f03879
to
d658954
Compare
d658954
to
9d347a7
Compare
9d347a7
to
cdb2e53
Compare
Closes #2281.