From 070e21cc4e1f8a2d46405c519e76e64e9a8c1e8c Mon Sep 17 00:00:00 2001 From: Chris Cummins Date: Fri, 18 Feb 2022 02:53:04 +0000 Subject: [PATCH] Fix typo in variable name and dependency. --- compiler_gym/service/runtime/BUILD | 1 + .../service/runtime/create_and_run_compiler_gym_service.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler_gym/service/runtime/BUILD b/compiler_gym/service/runtime/BUILD index 9432e0dea..535516fd3 100644 --- a/compiler_gym/service/runtime/BUILD +++ b/compiler_gym/service/runtime/BUILD @@ -93,6 +93,7 @@ py_library( srcs = ["create_and_run_compiler_gym_service.py"], deps = [ ":compiler_gym_service", + "//compiler_gym/service:connection", "//compiler_gym/service/proto", "//compiler_gym/util", ], diff --git a/compiler_gym/service/runtime/create_and_run_compiler_gym_service.py b/compiler_gym/service/runtime/create_and_run_compiler_gym_service.py index ec9896ccd..94e410465 100644 --- a/compiler_gym/service/runtime/create_and_run_compiler_gym_service.py +++ b/compiler_gym/service/runtime/create_and_run_compiler_gym_service.py @@ -18,7 +18,7 @@ import grpc from absl import app, flags, logging -from compiler_gym.service import connections +from compiler_gym.service import connection from compiler_gym.service.compilation_session import CompilationSession from compiler_gym.service.proto import compiler_gym_service_pb2_grpc from compiler_gym.service.runtime.compiler_gym_service import CompilerGymService @@ -95,7 +95,7 @@ def main(argv): # Create the service. server = grpc.server( futures.ThreadPoolExecutor(max_workers=FLAGS.rpc_service_threads), - options=connections.CLIENT_CONNECTION_OPTIONS, + options=connection.GRPC_CHANNEL_OPTIONS, ) service = CompilerGymService( working_directory=working_dir,