Skip to content

Commit e3ca95a

Browse files
committed
reduce config get timeout
1 parent ee41dfe commit e3ca95a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

issue/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ func sendReport(
131131
}
132132
}
133133

134-
// get which tracks the user was given in their config, if any are returned in less than 2 seconds
135-
ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(2*time.Second))
134+
// get which tracks the user was given in their config, if any are present
135+
ctx, cancel := context.WithTimeout(context.Background(), -time.Second)
136136
defer cancel()
137137

138138
userProxyConfig, err := userconfig.GetConfig(ctx)

0 commit comments

Comments
 (0)