Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Oct 9, 2023
1 parent 0d996a9 commit 71c07c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iroh/src/sync_engine/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,10 @@ impl<S: store::Store, B: baomap::Store> Actor<S, B> {

// Broadcast a sync report to our neighbors, but only if we received new entries.
if let Ok(state) = &result {
if SYNC_REPORTS_ENABLED && state.outcome.num_recv > 0 && self.gossip_joined.contains(&namespace) {
if SYNC_REPORTS_ENABLED
&& state.outcome.num_recv > 0
&& self.gossip_joined.contains(&namespace)
{
let report = SyncReport {
peer,
namespace,
Expand Down

0 comments on commit 71c07c7

Please sign in to comment.