Skip to content

Commit

Permalink
Fix wireInboundDelay behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashatyrev committed Mar 11, 2019
1 parent 33bb4ca commit cdbed35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wire/src/main/java/org/ethereum/beacon/wire/LocalWireHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public Publisher<BeaconBlock> inboundBlocksStream() {
return blocks;
} else {
return Flux.from(blocks)
.delayElements(Duration.ofMillis(inboundDelay))
.publishOn(schedulers.reactorEvents());
.delayElements(Duration.ofMillis(inboundDelay), schedulers.reactorEvents());
}
}

Expand All @@ -82,8 +81,7 @@ public Publisher<Attestation> inboundAttestationsStream() {
return attestations;
} else {
return Flux.from(attestations)
.delayElements(Duration.ofMillis(inboundDelay))
.publishOn(schedulers.reactorEvents());
.delayElements(Duration.ofMillis(inboundDelay), schedulers.reactorEvents());
}
}
}
Expand Down

0 comments on commit cdbed35

Please sign in to comment.