Skip to content
Permalink
Browse files
fix: Preconditions only supports %s format (#1153)
  • Loading branch information
noahdietz committed Jul 21, 2020
1 parent 9645752 commit 8145311b38fdd3bf82a4958f8aef5313857b70c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java
@@ -536,7 +536,7 @@ public int getPoolSize() {
public Builder setPoolSize(int poolSize) {
Preconditions.checkArgument(poolSize > 0, "Pool size must be positive");
Preconditions.checkArgument(
poolSize <= MAX_POOL_SIZE, "Pool size must be less than %d", MAX_POOL_SIZE);
poolSize <= MAX_POOL_SIZE, "Pool size must be less than %s", MAX_POOL_SIZE);
this.poolSize = poolSize;
return this;
}

0 comments on commit 8145311

Please sign in to comment.