File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,16 @@ type mockBroadcaster struct {
9898 ctx context.Context
9999 chans []chan []byte
100100 myChan chan []byte
101- dropProb * atomic.Int64 // probability of dropping a message instead of receiving it
101+ dropProb * atomic.Int64 // probability of dropping a message instead of broadcasting it
102102 t testing.TB
103103}
104104
105105func newBroadcasters (t testing.TB , n int ) ([]* mockBroadcaster , context.CancelFunc ) {
106106 ctx , cancel := context .WithCancel (context .Background ())
107107 broadcasters := make ([]* mockBroadcaster , n )
108108 chans := make ([]chan []byte , n )
109- dropP := & atomic.Int64 {}
110109 for i := range chans {
110+ dropP := & atomic.Int64 {}
111111 chans [i ] = make (chan []byte , 300 )
112112 broadcasters [i ] = & mockBroadcaster {
113113 ctx : ctx ,
You can’t perform that action at this time.
0 commit comments