File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ impl Manager {
252
252
253
253
let result = tokio:: time:: timeout ( timeout, client. quorum ( request) ) . await ;
254
254
255
- let sleep_time;
255
+ let mut sleep_time = 100 ;
256
256
match result {
257
257
Ok ( Ok ( response) ) => {
258
258
return Ok ( response) ;
@@ -273,7 +273,6 @@ impl Manager {
273
273
"lighthouse quorum timeout. error: {}" ,
274
274
e. to_string( )
275
275
) ;
276
- sleep_time = 100 ;
277
276
}
278
277
}
279
278
@@ -284,7 +283,7 @@ impl Manager {
284
283
) ) ) ;
285
284
}
286
285
287
- tokio:: time:: sleep ( timeout ) . await ;
286
+ tokio:: time:: sleep ( tokio :: time :: Duration :: from_millis ( sleep_time ) ) . await ;
288
287
289
288
// Reset the client since the lighthouse server might have failed
290
289
// If this also fails, consider increasing `connect_timeout`.
You can’t perform that action at this time.
0 commit comments