Skip to content

Commit

Permalink
Merge pull request fedimint#6122 from tvolk131/fix_clippy_warnings
Browse files Browse the repository at this point in the history
chore: fix clippy warnings
  • Loading branch information
tvolk131 authored Oct 2, 2024
2 parents 8e266ee + 054948f commit a3ad59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fedimint-server/src/config/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ impl ConfigGenApi {
self.bitcoin_status_cache.read().await;
if let Some((timestamp, status)) = cached_status.as_ref() {
if timestamp.elapsed() < self.bitcoin_status_cache_duration {
return Ok(status.clone());
return Ok(*status);
}
}
}
Expand All @@ -520,7 +520,7 @@ impl ConfigGenApi {
// Update the bitcoin status cache
let mut cached_status: RwLockWriteGuard<'_, Option<(Instant, BitcoinRpcConnectionStatus)>> =
self.bitcoin_status_cache.write().await;
*cached_status = Some((Instant::now(), status.clone()));
*cached_status = Some((Instant::now(), status));

Ok(status)
}
Expand Down

0 comments on commit a3ad59d

Please sign in to comment.