core-daemon now allows configuration for grpc address and port, defaults to localhost, also fixed grpc example due to enum and event changes

This commit is contained in:
Blake Harnden 2019-05-30 16:31:48 -07:00
parent 4dd6dc1837
commit e063fcd4fe
3 changed files with 13 additions and 11 deletions

View file

@ -123,7 +123,7 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
def _cancel_stream(self, context):
context.abort(grpc.StatusCode.CANCELLED, "server stopping")
def listen(self, address="[::]:50051"):
def listen(self, address):
logging.info("starting grpc api: %s", address)
self.server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
core_pb2_grpc.add_CoreApiServicer_to_server(self, self.server)