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

Commitc5938da

Browse files
committed
apply review suggestions
1 parent35017a2 commitc5938da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎scaletest/notifications/run.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (r *Runner) Run(ctx context.Context, id string, logs io.Writer) error {
111111
r.cfg.DialBarrier.Done()
112112
r.cfg.DialBarrier.Wait()
113113

114-
logger.Info(ctx,fmt.Sprintf("waiting for notifications",slog.F("timeout",r.cfg.NotificationTimeout))
114+
logger.Info(ctx,"waiting for notifications",slog.F("timeout",r.cfg.NotificationTimeout))
115115

116116
watchCtx,cancel:=context.WithTimeout(ctx,r.cfg.NotificationTimeout)
117117
defercancel()
@@ -192,7 +192,7 @@ func (r *Runner) watchNotifications(ctx context.Context, conn *websocket.Conn, u
192192

193193
// Read notifications until we have both expected types
194194
for!receivedCreated||!receivedDeleted {
195-
notif,err:=r.readNotification(ctx,conn)
195+
notif,err:=readNotification(ctx,conn)
196196
iferr!=nil {
197197
logger.Error(ctx,"read notification",slog.Error(err))
198198
r.cfg.Metrics.AddError(user.Username,"read_notification")
@@ -224,7 +224,7 @@ func (r *Runner) watchNotifications(ctx context.Context, conn *websocket.Conn, u
224224
returnnil
225225
}
226226

227-
readNotification(ctxcontext.Context,conn*websocket.Conn) (codersdk.GetInboxNotificationResponse,error) {
227+
funcreadNotification(ctx context.Context,conn*websocket.Conn) (codersdk.GetInboxNotificationResponse,error) {
228228
_,message,err:=conn.Read(ctx)
229229
iferr!=nil {
230230
return codersdk.GetInboxNotificationResponse{},err

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp