Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f8cb85

Browse files
committed
fixup! drain connection async
1 parent149bfb6 commit2f8cb85

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
ifwErr:=<-wch;wErr!=nil {
117117
returnxerrors.Errorf("write to pty: %w",wErr)
118118
}
119-
drainStart:=time.Now()
120119
ifrErr:=<-rch;rErr!=nil {
121120
returnxerrors.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)

[8]ページ先頭

©2009-2025 Movatter.jp