Skip to content
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

[MET-44]rocks gap filler server #19

Merged
merged 10 commits into from
Dec 27, 2023
Merged

Conversation

StanChe
Copy link
Contributor

@StanChe StanChe commented Dec 22, 2023

An implementation of the asset streaming service for rocksdb.

@StanChe StanChe force-pushed the feature/rocks-gap-filler-server branch 2 times, most recently from 6d40393 to b285204 Compare December 26, 2023 13:51
let (tx, rx) = tokio::sync::mpsc::channel(32);
let backend = self.slot_asset_idx.backend.clone();

tokio::spawn(async move {
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm not mistaken our graceful stop is not propagating onto this one task because in main.rs we have JoinSet to handle all the tasks(workers) and here we create new JoinHandle by calling tokio::spawn and do not process it anyhow. So if we need graceful stop for this operation I think we have to use JoinSet which we are defining in main.rs file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Presumably fixed it, please have another look and verify the approach.

@StanChe StanChe force-pushed the feature/rocks-gap-filler-server branch from 3f4da7c to 542a759 Compare December 27, 2023 09:48
@StanChe StanChe merged commit 2fccc00 into main Dec 27, 2023
2 checks passed
@StanChe StanChe deleted the feature/rocks-gap-filler-server branch December 27, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants