Skip to content

Commit

Permalink
refactor(iroh): restructure cli modules to match command structure (#…
Browse files Browse the repository at this point in the history
…1799)

Only moves code around
  • Loading branch information
dignifiedquire committed Nov 15, 2023
1 parent fe7fc50 commit c1aeeb1
Show file tree
Hide file tree
Showing 16 changed files with 1,343 additions and 1,311 deletions.
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::{Path, PathBuf};
use std::pin::Pin;
Expand Down Expand Up @@ -95,7 +95,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

0 comments on commit c1aeeb1

Please sign in to comment.