Skip to content

Commit

Permalink
Increase the deadline to 10 minutes for large syncs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Apr 30, 2020
1 parent 05ffdf1 commit 1aa9c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mirror/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface InterruptedRunnable {
/** grpc-java doesn't support timeouts yet, so we have to set a per-call deadline. */
public static MirrorStub withTimeout(MirrorStub s) {
// over VPN, ~100k files can take 30 seconds.
return s.withDeadlineAfter(3, TimeUnit.MINUTES);
return s.withDeadlineAfter(10, TimeUnit.MINUTES);
}

public static void logConnectionError(Logger log, Throwable t) {
Expand Down

0 comments on commit 1aa9c6b

Please sign in to comment.