Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: appengine/swarming/swarming_bot/bot_code/remote_client.py

Issue 2969513002: Add a default Isolate gRPC proxy in config (Closed)
Patch Set: Fix problem in tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/swarming_bot/bot_code/remote_client.py
diff --git a/appengine/swarming/swarming_bot/bot_code/remote_client.py b/appengine/swarming/swarming_bot/bot_code/remote_client.py
index 2d494ffe2be087bd25c8b072f72caa9ca1748a27..579e537a69583adca224ada7aff4d44ec62047d5 100644
--- a/appengine/swarming/swarming_bot/bot_code/remote_client.py
+++ b/appengine/swarming/swarming_bot/bot_code/remote_client.py
@@ -41,10 +41,10 @@ AUTH_HEADERS_EXPIRATION_SEC = 4*60+30
NET_CONNECTION_TIMEOUT_SEC = 3*60
-def createRemoteClient(server, auth, useGrpc):
- if useGrpc:
+def createRemoteClient(server, auth, grpc_proxy):
+ if grpc_proxy:
import remote_client_grpc
- return remote_client_grpc.RemoteClientGrpc(server)
+ return remote_client_grpc.RemoteClientGrpc(grpc_proxy)
return RemoteClientNative(server, auth)
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_main_test.py ('k') | appengine/swarming/swarming_bot/config/config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698