[serve] Create all other actors in master actor (#7791)

This commit is contained in:
Edward Oakes
2020-04-01 10:15:04 -05:00
committed by GitHub
parent b011c604d7
commit f4239d27fa
5 changed files with 144 additions and 218 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ class HTTPProxyActor:
def __init__(self):
self.app = HTTPProxy()
async def run(self, host="0.0.0.0", port=8000):
async def run(self, host, port):
sock = socket.socket()
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind((host, port))