Temporarily disable security
This commit is contained in:
@@ -57,7 +57,9 @@ class MotorServicer(motorService_pb2_grpc.CarControlServicer):
|
||||
def start_server(self):
|
||||
server = grpc.server(futures.ThreadPoolExecutor(max_workers=8))
|
||||
motorService_pb2_grpc.add_CarControlServicer_to_server(self, server)
|
||||
server.add_secure_port('[::]:50051', self.create_credentials())
|
||||
# Disable security for local testing.
|
||||
# server.add_secure_port('[::]:50051', self.create_credentials())
|
||||
server.add_insecure_port('[::]:50051')
|
||||
server.start()
|
||||
while True:
|
||||
time.sleep(60*60)
|
||||
|
||||
Reference in New Issue
Block a user