quickstarts/workflows/python/sdk/order-processor/util.py

11 lines
284 B
Python

from dapr.conf import settings
def get_address():
host = settings.DAPR_RUNTIME_HOST
if host is None:
host = "localhost"
port = settings.DAPR_GRPC_PORT
if port is None:
port = "50001"
return {'host': host, 'port': port}