Skip to content

Commit d5761ac

Browse files
committed
Prevent negative intervals
1 parent ffd97f5 commit d5761ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func createConn(
153153
}
154154

155155
workerInterval := initialTickerInterval
156-
if config.FlightInterval != 0 {
156+
if config.FlightInterval > 0 {
157157
workerInterval = config.FlightInterval
158158
}
159159

0 commit comments

Comments
 (0)