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

chore(docs): document the health RPC method #61

Merged
merged 5 commits into from
Apr 23, 2022

Conversation

iTranscend
Copy link
Contributor

Tracking issue: #51

Documented the health RPC method, including an easy-to-understand example.

@@ -1,3 +1,27 @@
//! Requests the health status of the rpc node.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
//! Requests the health status of the rpc node.
//! Requests the health status of the RPC node.
//!
//! Returns an error if the node is syncing or has no new blocks.

//!
//! assert!(matches!(
//! response,
//! methods::health::RpcHealthResponse { .. }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
//! methods::health::RpcHealthResponse { .. }
//! methods::health::RpcHealthResponse

@miraclx miraclx enabled auto-merge (squash) April 23, 2022 06:16
@miraclx miraclx merged commit 5b09ed9 into near:master Apr 23, 2022
@frol frol mentioned this pull request Jun 2, 2023
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.

2 participants