Skip to content

Commit

Permalink
fix (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandemeusy authored Mar 5, 2024
1 parent 081d4eb commit 71cc9f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ct-app/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self):
self.tasks = set[asyncio.Task]()

self.connected = LockedVar("connected", False)
self.address = None

self.all_peers = LockedVar("all_peers", set[Peer]())
self.topology_list = LockedVar("topology_list", list[TopologyEntry]())
Expand Down Expand Up @@ -74,7 +75,9 @@ def network_nodes(self) -> list[Node]:

@property
async def network_nodes_addresses(self) -> list[Address]:
return await asyncio.gather(*[node.address.get() for node in self.network_nodes])
return await asyncio.gather(
*[node.address.get() for node in self.network_nodes]
)

@property
def safes_balance_subgraph_type(self) -> SubgraphType:
Expand Down
2 changes: 1 addition & 1 deletion ct-app/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def healthcheck(self):
@connectguard
async def retrieve_balances(self):
for token, balance in (await self.api.balances()).items():
BALANCE.labels(self.address.id, token).set(balance)
BALANCE.labels((await self.address.get()).id, token).set(balance)

@flagguard
@formalin("Opening channels")
Expand Down

0 comments on commit 71cc9f8

Please sign in to comment.