Skip to content

Commit 4c0ff4f

Browse files
default DISPATCH_ENDPOINT_ADDR to localhost:8000
Signed-off-by: Achille Roussel <[email protected]>
1 parent 88a74da commit 4c0ff4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dispatch/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def function(func):
6565
return _default_registry().function(func)
6666

6767

68-
def run(port: str = os.environ.get("DISPATCH_ENDPOINT_ADDR", "[::]:8000")):
68+
def run(port: str = os.environ.get("DISPATCH_ENDPOINT_ADDR", "localhost:8000")):
6969
"""Run the default dispatch server on the given port. The default server
7070
uses a function registry where functions tagged by the `@dispatch.function`
7171
decorator are registered.
@@ -76,7 +76,7 @@ def run(port: str = os.environ.get("DISPATCH_ENDPOINT_ADDR", "[::]:8000")):
7676
7777
Args:
7878
port: The address to bind the server to. Defaults to the value of the
79-
DISPATCH_ENDPOINT_ADDR environment variable, or '[::]:8000' if it
79+
DISPATCH_ENDPOINT_ADDR environment variable, or 'localhost:8000' if it
8080
wasn't set.
8181
"""
8282
parsed_url = urlsplit("//" + port)

0 commit comments

Comments
 (0)