diff options
author | Craig Tiller <ctiller@google.com> | 2017-01-27 16:07:01 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-01-27 16:07:01 -0800 |
commit | d9b2d94c687ccb5b46ed4c4c3d1167ebec380d7d (patch) | |
tree | 5a292078ee6b243f20e21fea60fef9e72228bccc /src/python/grpcio_tests/tests/qps | |
parent | faa835c308ad7c107f08d9065d24dfc589b1cb20 (diff) | |
parent | 46357c882df1afc28f7a5228c40fde522093fa32 (diff) |
Merge github.com:grpc/grpc into large_message_benchmarks
Diffstat (limited to 'src/python/grpcio_tests/tests/qps')
-rw-r--r-- | src/python/grpcio_tests/tests/qps/worker_server.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/grpcio_tests/tests/qps/worker_server.py b/src/python/grpcio_tests/tests/qps/worker_server.py index 1deb7ed698..ca1a777611 100644 --- a/src/python/grpcio_tests/tests/qps/worker_server.py +++ b/src/python/grpcio_tests/tests/qps/worker_server.py @@ -102,8 +102,8 @@ class WorkerServer(services_pb2.WorkerServiceServicer): 'grpc.testing.BenchmarkService', method_implementations) server.add_generic_rpc_handlers((handler,)) else: - raise Exception('Unsupported server type {}'.format( - config.server_type)) + raise Exception( + 'Unsupported server type {}'.format(config.server_type)) if config.HasField('security_params'): # Use SSL server_creds = grpc.ssl_server_credentials(( @@ -171,8 +171,8 @@ class WorkerServer(services_pb2.WorkerServiceServicer): else: raise Exception('Async streaming client not supported') else: - raise Exception('Unsupported client type {}'.format( - config.client_type)) + raise Exception( + 'Unsupported client type {}'.format(config.client_type)) # In multi-channel tests, we split the load across all channels load_factor = float(config.client_channels) |