Skip to content

Commit 0817204

Browse files
committed
fixup! address PR comments
1 parent 31fa8be commit 0817204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scaletest/trafficgen/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (r *Runner) Run(ctx context.Context, _ string, logs io.Writer) error {
9898
// Read forever in the background.
9999
go func() {
100100
logger.Debug(ctx, "reading from agent", slog.F("agent_id", agentID))
101-
rch <- drainContext(deadlineCtx, &crw, bytesPerTick*2)
101+
rch <- drainContext(deadlineCtx, &crw)
102102
logger.Debug(ctx, "done reading from agent", slog.F("agent_id", agentID))
103103
conn.Close()
104104
close(rch)
@@ -137,7 +137,7 @@ func (*Runner) Cleanup(context.Context, string) error {
137137
}
138138

139139
// drainContext drains from src until it returns io.EOF or ctx times out.
140-
func drainContext(ctx context.Context, src io.Reader, bufSize int64) error {
140+
func drainContext(ctx context.Context, src io.Reader) error {
141141
errCh := make(chan error, 1)
142142
done := make(chan struct{})
143143
go func() {

0 commit comments

Comments
 (0)