updated grpc client to have a proxy flag, updated coretk script to have a flag to enable proxy, disabled by default

This commit is contained in:
Blake Harnden 2020-01-14 22:15:00 -08:00
parent 583a552bdb
commit d4bce0d25c
4 changed files with 18 additions and 8 deletions

View file

@ -47,11 +47,11 @@ class Observer:
class CoreClient:
def __init__(self, app):
def __init__(self, app, proxy):
"""
Create a CoreGrpc instance
"""
self.client = client.CoreGrpcClient()
self.client = client.CoreGrpcClient(proxy=proxy)
self.session_id = None
self.node_ids = []
self.app = app