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

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

Issue 2987333002: Refactor all gRPC proxy code into a single class. (Closed)
Patch Set: Fix pylint errors Created 3 years, 4 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 579e537a69583adca224ada7aff4d44ec62047d5..610b86f538f18b84cfb9ab17fdb8e5f274d15c73 100644
--- a/appengine/swarming/swarming_bot/bot_code/remote_client.py
+++ b/appengine/swarming/swarming_bot/bot_code/remote_client.py
@@ -4,6 +4,7 @@
import base64
import logging
+import os
import threading
import time
import traceback
@@ -42,6 +43,7 @@ NET_CONNECTION_TIMEOUT_SEC = 3*60
def createRemoteClient(server, auth, grpc_proxy):
+ grpc_proxy = os.environ.get('SWARMING_GRPC_PROXY', grpc_proxy)
if grpc_proxy:
import remote_client_grpc
return remote_client_grpc.RemoteClientGrpc(grpc_proxy)
« no previous file with comments | « appengine/swarming/server/bot_archive.py ('k') | appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698