We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d561e5c commit 0d93ad7Copy full SHA for 0d93ad7
node/src/lib.rs
@@ -918,10 +918,8 @@ mod test {
918
}
919
920
fn peers_connected(client: &Client) -> usize {
921
- // FIXME: Once client implements get_peer_info use it.
922
- // This is kinda cool, it shows we can call any RPC method using the client.
923
- let result: Vec<serde_json::Value> = client.call("getpeerinfo", &[]).unwrap();
924
- result.len()
+ let json = client.get_peer_info().expect("get_peer_info");
+ json.0.len()
925
926
927
fn init() -> String {
0 commit comments