File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -947,7 +947,7 @@ def next_at(self):
947
947
"""Number of seconds until next task is ready."""
948
948
self ._drop_removed ()
949
949
if not self ._tasks :
950
- return 9999999999
950
+ return float ( 'inf' )
951
951
else :
952
952
return max (self ._tasks [0 ][0 ] - time .time (), 0 )
953
953
Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ def connection_delay(self):
607
607
elif self .connecting ():
608
608
return 0
609
609
else :
610
- return 999999999
610
+ return float ( 'inf' )
611
611
612
612
def connected (self ):
613
613
"""Return True iff socket is connected."""
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ def close(self, timeout=None):
437
437
return
438
438
if timeout is None :
439
439
# threading.TIMEOUT_MAX is available in Python3.3+
440
- timeout = getattr (threading , 'TIMEOUT_MAX' , 999999999 )
440
+ timeout = getattr (threading , 'TIMEOUT_MAX' , float ( 'inf' ) )
441
441
if getattr (threading , 'TIMEOUT_MAX' , False ):
442
442
assert 0 <= timeout <= getattr (threading , 'TIMEOUT_MAX' )
443
443
else :
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def run_once(self):
103
103
self ._metadata .request_update ()
104
104
105
105
# remove any nodes we aren't ready to send to
106
- not_ready_timeout = 999999999
106
+ not_ready_timeout = float ( 'inf' )
107
107
for node in list (ready_nodes ):
108
108
if not self ._client .ready (node ):
109
109
log .debug ('Node %s not ready; delaying produce of accumulated batch' , node )
You can’t perform that action at this time.
0 commit comments