Skip to content

Commit 2f8cb85

Browse files
committed
fixup! drain connection async
1 parent 149bfb6 commit 2f8cb85

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scaletest/trafficgen/run.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,14 @@ func (r *Runner) Run(ctx context.Context, _ string, logs io.Writer) error {
116116
if wErr := <-wch; wErr != nil {
117117
return xerrors.Errorf("write to pty: %w", wErr)
118118
}
119-
drainStart := time.Now()
120119
if rErr := <-rch; rErr != nil {
121120
return xerrors.Errorf("read from pty: %w", rErr)
122121
}
123122

124123
duration := time.Since(start)
125-
drainDuration := time.Since(drainStart)
126124

127125
logger.Info(ctx, "results",
128126
slog.F("duration", duration),
129-
slog.F("drain", drainDuration),
130127
slog.F("sent", crw.BytesWritten()),
131128
slog.F("rcvd", crw.BytesRead()),
132129
)

0 commit comments

Comments
 (0)