Skip to content

Commit

Permalink
add to info
Browse files Browse the repository at this point in the history
  • Loading branch information
Septias committed May 27, 2024
1 parent bf13e79 commit 316bc39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ impl Context {
.get_config(Config::ConfiguredTrashFolder)
.await?
.unwrap_or_else(|| "<unset>".to_string());

let mut res = get_info();

// insert values
Expand Down Expand Up @@ -950,6 +949,7 @@ impl Context {
.await?
.to_string(),
);
res.insert("enable_realtime", self.get_config_bool(Config::EnableRealtime).await?.to_string());

let elapsed = time_elapsed(&self.creation_time);
res.insert("uptime", duration_to_str(elapsed));
Expand Down Expand Up @@ -1656,7 +1656,6 @@ mod tests {
"socks5_password",
"key_id",
"webxdc_integration",
"iroh_secret_key",
];
let t = TestContext::new().await;
let info = t.get_info().await.unwrap();
Expand Down

0 comments on commit 316bc39

Please sign in to comment.