-
Notifications
You must be signed in to change notification settings - Fork 65
apollo_storage,apollo_batcher: spawn storage reader server independently #11392
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
apollo_storage,apollo_batcher: spawn storage reader server independently #11392
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merge activity
|
9426412 to
4e2297d
Compare
abd2732 to
02e0430
Compare
Itay-Tsabary-Starkware
left a comment
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.
@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @nadin-Starkware).
crates/apollo_storage/src/storage_reader_server.rs line 178 at r2 (raw file):
}); } }
It's not a great practice to keep task handles afloat; could we somehow return the handle and store it in a relevant place?
Code quote:
/// Spawns the storage reader server in a background task if it's enabled.
pub fn spawn_if_enabled(server: Option<Self>)
where
RequestHandler: Send + Sync + 'static,
Request: Send + Sync + 'static,
Response: Send + Sync + 'static,
{
if let Some(server) = server {
tokio::spawn(async move {
if let Err(e) = server.run().await {
tracing::error!("Storage reader server error: {:?}", e);
}
});
}
}02e0430 to
d272a72
Compare
nadin-Starkware
left a comment
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.
@nadin-Starkware made 1 comment.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @Itay-Tsabary-Starkware).
crates/apollo_storage/src/storage_reader_server.rs line 178 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
It's not a great practice to keep task handles afloat; could we somehow return the handle and store it in a relevant place?
Done.
d272a72 to
09e61b7
Compare
Itay-Tsabary-Starkware
left a comment
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.
@Itay-Tsabary-Starkware reviewed 4 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware).
36b43e1

No description provided.