Skip to content

Commit

Permalink
Add more context to exception
Browse files Browse the repository at this point in the history
    This was helpful in debugging bazelbuild/bazel#11392

    Closes #11396.

    PiperOrigin-RevId: 312077991
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent 9d713cc commit 243836c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,28 +122,28 @@ private ContentAddressableStorageFutureStub casFutureStub() {
return ContentAddressableStorageGrpc.newFutureStub(channel)
.withInterceptors(TracingMetadataUtils.attachMetadataFromContextInterceptor())
.withCallCredentials(credentials)
.withDeadlineAfter(options.remoteTimeout.getSeconds(), TimeUnit.SECONDS);
.withDeadlineAfter(options.remoteTimeout, TimeUnit.SECONDS);
}

private ByteStreamStub bsAsyncStub() {
return ByteStreamGrpc.newStub(channel)
.withInterceptors(TracingMetadataUtils.attachMetadataFromContextInterceptor())
.withCallCredentials(credentials)
.withDeadlineAfter(options.remoteTimeout.getSeconds(), TimeUnit.SECONDS);
.withDeadlineAfter(options.remoteTimeout, TimeUnit.SECONDS);
}

private ActionCacheBlockingStub acBlockingStub() {
return ActionCacheGrpc.newBlockingStub(channel)
.withInterceptors(TracingMetadataUtils.attachMetadataFromContextInterceptor())
.withCallCredentials(credentials)
.withDeadlineAfter(options.remoteTimeout.getSeconds(), TimeUnit.SECONDS);
.withDeadlineAfter(options.remoteTimeout, TimeUnit.SECONDS);
}

private ActionCacheFutureStub acFutureStub() {
return ActionCacheGrpc.newFutureStub(channel)
.withInterceptors(TracingMetadataUtils.attachMetadataFromContextInterceptor())
.withCallCredentials(credentials)
.withDeadlineAfter(options.remoteTimeout.getSeconds(), TimeUnit.SECONDS);
.withDeadlineAfter(options.remoteTimeout, TimeUnit.SECONDS);
}

@Override
Expand Down

0 comments on commit 243836c

Please sign in to comment.