Skip to content

Commit 40c22cb

Browse files
author
Guillaume Bouvignies
authored
refactor: Update add_service to use ServiceConfig for its config arg (#31)
1 parent 40eb864 commit 40c22cb

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/services/contract_helper.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def add_contract_helper_service(
103103
for key, value in STATIC_ENVVARS.items():
104104
env_vars[key] = value
105105

106-
config = struct(
106+
config = ServiceConfig(
107107
image = IMAGE,
108108
ports = used_ports,
109109
public_ports = public_ports,

src/services/contract_helper_dynamodb.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ROOT_PATH = ""
1313

1414
def add_contract_helper_dynamo_db(plan):
1515
plan.print("Adding contract helper DynamoDB running on default port '" + str(DEFAULT_PORT_NUM) + "'")
16-
config = struct(
16+
config = ServiceConfig(
1717
image = IMAGE,
1818
ports = {
1919
PORT_ID: DEFAULT_PORT_SPEC

src/services/contract_helper_postgresql.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def add_contract_helper_db(plan):
4545
PORT_ID: PORT_SPEC
4646
}
4747

48-
config = struct(
48+
config = ServiceConfig(
4949
image = IMAGE,
5050
env_vars = STATIC_ENVVARS,
5151
ports = ports

src/services/explorer_backend.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def add_explorer_backend_service(
9595
"NEAR_EXPLORER_CONFIG__ARCHIVAL_RPC_URL": service_url.service_url_to_string(near_node_private_rpc_url)
9696
}
9797

98-
config = struct(
98+
config = ServiceConfig(
9999
image = IMAGE,
100100
ports = ports,
101101
env_vars = env_vars,

src/services/explorer_frontend.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def add_explorer_frontend_service(
9090
"NEAR_EXPLORER_CONFIG__BACKEND__SECURE": "false",
9191
}
9292

93-
config = struct(
93+
config = ServiceConfig(
9494
image = IMAGE,
9595
ports = used_ports,
9696
public_ports = public_ports,

src/services/indexer.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def add_indexer(plan, db_private_url, db_username, db_password, db_name):
6161
NEAR_CONFIGS_DIRPATH_ON_INDEXER_CONTAINER: upload_artifact_uuid
6262
}
6363

64-
config = struct(
64+
config = ServiceConfig(
6565
image = IMAGE,
6666
env_vars = env_vars,
6767
entrypoint = ["sh", "-c"],

src/services/wallet.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def add_wallet(
7373

7474
single_command_to_run = " && ".join(commands_to_run)
7575

76-
config = struct(
76+
config = ServiceConfig(
7777
image = IMAGE,
7878
ports = used_ports,
7979
public_ports = public_ports,

0 commit comments

Comments
 (0)