Skip to content

Conversation

@nadin-Starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

nadin-Starkware commented Jan 4, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@graphite-app
Copy link

graphite-app bot commented Jan 4, 2026

Merge activity

  • Jan 4, 1:03 PM UTC: This pull request can not be added to the Graphite merge queue. Please try rebasing and resubmitting to merge when ready.
  • Jan 4, 1:03 PM UTC: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..

@nadin-Starkware nadin-Starkware force-pushed the 01-04-apollo_storage_apollo_batcher_spawn_storage_reader_server_independently branch from 9426412 to 4e2297d Compare January 4, 2026 13:11
@github-actions
Copy link

github-actions bot commented Jan 4, 2026

@nadin-Starkware nadin-Starkware force-pushed the 01-04-apollo_storage_apollo_batcher_spawn_storage_reader_server_independently branch 3 times, most recently from abd2732 to 02e0430 Compare January 5, 2026 08:05
@nadin-Starkware nadin-Starkware changed the title apollo_storage, apollo_batcher: spawn storage reader server independently apollo_storage,apollo_batcher: spawn storage reader server independently Jan 5, 2026
Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a 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);
                }
            });
        }
    }

@nadin-Starkware nadin-Starkware force-pushed the 01-04-apollo_storage_apollo_batcher_spawn_storage_reader_server_independently branch from 02e0430 to d272a72 Compare January 12, 2026 08:59
Copy link
Collaborator Author

@nadin-Starkware nadin-Starkware left a 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.

@nadin-Starkware nadin-Starkware force-pushed the 01-04-apollo_storage_apollo_batcher_spawn_storage_reader_server_independently branch from d272a72 to 09e61b7 Compare January 12, 2026 09:39
Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@Itay-Tsabary-Starkware reviewed 4 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware).

@nadin-Starkware nadin-Starkware added this pull request to the merge queue Jan 12, 2026
Merged via the queue into main-v0.14.1-committer with commit 36b43e1 Jan 12, 2026
20 of 23 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants