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

rust client: add unary methods #122

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

shuimuliang
Copy link
Contributor

add ping,get_latest_blockhash,get_block_height,get_slot for yellowstone-grpc-client

add ping,get_latest_blockhash,get_block_height,get_slot for yellowstone-grpc-client
@shuimuliang shuimuliang linked an issue May 22, 2023 that may be closed by this pull request
8 tasks
@@ -1,3 +1,5 @@
use yellowstone_grpc_proto::geyser::{GetSlotResponse, PongResponse};
use yellowstone_grpc_proto::prelude::{GetBlockHeightResponse, GetLatestBlockhashResponse};
Copy link
Collaborator

Choose a reason for hiding this comment

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

we have import from this crate down in this file (line 19)

@@ -288,3 +295,17 @@ async fn main() -> anyhow::Result<()> {
.await
.map_err(Into::into)
}

// unary method
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be better support unary methods in arguments, not as commented code

@fanatid fanatid changed the title feat: #112 rust client: add unary methods May 22, 2023
@fanatid
Copy link
Collaborator

fanatid commented May 22, 2023

Related #112

@shuimuliang shuimuliang merged commit 02a94d9 into master May 22, 2023
2 checks passed
@shuimuliang shuimuliang deleted the 112-add-non-streaming-methods branch May 22, 2023 16:59
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.

Add non-streaming methods
2 participants