diff --git a/pyproject.toml b/pyproject.toml index 34a24e8..45da099 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sw-utils" -version = "v0.12.6" +version = "v0.12.7" description = "StakeWise Python utils" authors = ["StakeWise Labs "] license = "GPL-3.0-or-later" diff --git a/sw_utils/graph/subgraph_committee.py b/sw_utils/graph/subgraph_committee.py index 7c51d7e..2c9d081 100644 --- a/sw_utils/graph/subgraph_committee.py +++ b/sw_utils/graph/subgraph_committee.py @@ -32,6 +32,10 @@ async def setup(self) -> None: for graph_client in self.graph_clients: await graph_client.setup() + async def disconnect(self) -> None: + for graph_client in self.graph_clients: + await graph_client.disconnect() + async def fetch_votes( self, query: DocumentNode, block_number: BlockNumber ) -> 'SubgraphCommitteeVotes':