Set the wait time shorter than before.
This commit is contained in:
parent
f4d332a340
commit
18fed69e44
|
|
@ -19,7 +19,6 @@ public class GRPCStreamServiceStatus {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param maxTimeout max wait time, milliseconds.
|
||||
*/
|
||||
public void wait4Finish(long maxTimeout) {
|
||||
|
|
@ -28,8 +27,8 @@ public class GRPCStreamServiceStatus {
|
|||
if (time > maxTimeout) {
|
||||
break;
|
||||
}
|
||||
try2Sleep(50);
|
||||
time += 50;
|
||||
try2Sleep(5);
|
||||
time += 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue