Skip to content

Commit

Permalink
feat : reset byte counters after handshake in SpawnReplicas function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Apr 10, 2024
1 parent 762ee5f commit ffedade
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ func SpawnReplicas(replicaCount int, stageHarness *test_case_harness.TestCaseHar
return nil, err
}

// The bytes received and sent during the handshake don't count towards offset.
// After finishing the handshake we reset the counters.
replica.ResetByteCounters()

replicas = append(replicas, replica)
}
return replicas, nil
Expand Down

0 comments on commit ffedade

Please sign in to comment.