aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2017-06-27 18:35:05 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-28 10:17:49 +0200
commitc09732b55f4cd08d36e036396b482562c8f6d0cb (patch)
treed12109eb6597c784d52167152b0893342ced079e /src
parente2ffd5d3eb8a24efc26568543ae32637c6d26380 (diff)
Rename RemoteUtils to GrpcUtils
PiperOrigin-RevId: 160285362
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/GrpcUtils.java (renamed from src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java)2
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java b/src/main/java/com/google/devtools/build/lib/remote/GrpcUtils.java
index 58b2c94bf8..f6e0092822 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteUtils.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/GrpcUtils.java
@@ -21,7 +21,7 @@ import io.grpc.netty.NettyChannelBuilder;
/** Helper methods for gRPC calls */
@ThreadSafe
-public final class RemoteUtils {
+final class GrpcUtils {
public static ManagedChannel createChannel(String target, ChannelOptions channelOptions) {
NettyChannelBuilder builder =
NettyChannelBuilder.forTarget(target)
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java
index 1a8ab90247..c0952c0282 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java
@@ -106,7 +106,7 @@ final class RemoteSpawnStrategy implements SpawnActionContext {
} else if (GrpcActionCache.isRemoteCacheOptions(remoteOptions)) {
remoteCache =
new GrpcActionCache(
- RemoteUtils.createChannel(remoteOptions.remoteCache, channelOptions),
+ GrpcUtils.createChannel(remoteOptions.remoteCache, channelOptions),
channelOptions,
remoteOptions);
} else {
@@ -117,7 +117,7 @@ final class RemoteSpawnStrategy implements SpawnActionContext {
if (remoteCache != null && GrpcRemoteExecutor.isRemoteExecutionOptions(remoteOptions)) {
workExecutor =
new GrpcRemoteExecutor(
- RemoteUtils.createChannel(remoteOptions.remoteExecutor, channelOptions),
+ GrpcUtils.createChannel(remoteOptions.remoteExecutor, channelOptions),
channelOptions,
remoteOptions);
} else {