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

Add subscriptions to RPC interface #15

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

nanocryk
Copy link
Collaborator

No description provided.

@nanocryk nanocryk requested a review from girazoki March 19, 2024 14:15
}

/// Get a stream of finality notifications.
async fn finality_notification_stream(
&self,
) -> OrchestratorChainResult<Pin<Box<dyn Stream<Item = PHeader> + Send>>> {
todo!()
let rx = self.send_register_message(WsClientRequest::RegisterFinalizationListener)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need this register messagE?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah got it, I also see it in cumulus

Copy link
Collaborator

@girazoki girazoki left a comment

Choose a reason for hiding this comment

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

I see it pretty similar to cumulus, hence my approval. @tmpolaczyk can you take a look?

Copy link
Collaborator

@tmpolaczyk tmpolaczyk left a comment

Choose a reason for hiding this comment

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

I didn't try it out but looks good

@girazoki girazoki merged commit 6b19dcb into master Mar 26, 2024
8 checks passed
nanocryk added a commit that referenced this pull request Apr 9, 2024
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