Skip to content

Commit

Permalink
fix: use correct indices in relay
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekMracna committed Sep 5, 2024
1 parent ab9d4fc commit ef46054
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/communicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ impl Communicator {

/// Moves messages from incoming buffers to outgoing buffers
pub fn relay(&mut self) {
self.output = (0..self.threshold)
self.output = self.get_protocol_indices()
.into_iter()
.map(|idx| {
let idx = idx + self.protocol_type.index_offset();

let mut unicasts = HashMap::new();
let mut broadcasts = HashMap::new();

Expand Down

0 comments on commit ef46054

Please sign in to comment.