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

refactor(iroh): restructure cli modules to match command structure #1799

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iroh/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! TODO: Contains only iroh sync related methods. Add other methods.

use std::collections::HashMap;
use std::collections::BTreeMap;
use std::io::{self, Cursor};
use std::path::PathBuf;
use std::pin::Pin;
Expand Down Expand Up @@ -93,7 +93,7 @@ where
C: ServiceConnection<ProviderService>,
{
/// Get statistics of the running node.
pub async fn stats(&self) -> Result<HashMap<String, CounterStats>> {
pub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>> {
let res = self.rpc.rpc(NodeStatsRequest {}).await??;
Ok(res.stats)
}
Expand Down
Loading
Loading