Skip to content

Commit

Permalink
router: Stop consuming forwarded packets while benchmarking.
Browse files Browse the repository at this point in the history
We still check that forwarding works, but consume only 1 paket for that purpose.
Let the others accumulate and spill.
  • Loading branch information
jiceatscion committed Nov 23, 2023
1 parent 5e2fe0f commit e8a523a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acceptance/router_newbenchmark/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ func realMain() int {
continue
}
if string(layer.LayerContents()) == payloadString {
// return // One is all we need. But continue and count for now.
numRcv++
return
}
}
}()
Expand Down

0 comments on commit e8a523a

Please sign in to comment.