Skip to content

Commit 27acd84

Browse files
author
abel
committed
(feat) Removed no longer necessary cookies methods in the AsyncClient
1 parent 5eb92af commit 27acd84

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

pyinjective/async_client.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import time
44
from copy import deepcopy
55
from decimal import Decimal
6-
from typing import Any, Callable, Coroutine, Dict, List, Optional, Tuple, Union
6+
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
77
from warnings import warn
88

99
import grpc
@@ -3207,18 +3207,6 @@ def _token_representation(
32073207

32083208
return tokens_by_denom[denom]
32093209

3210-
def _chain_cookie_metadata_requestor(self) -> Coroutine:
3211-
request = tendermint_query.GetLatestBlockRequest()
3212-
return self.stubCosmosTendermint.GetLatestBlock(request).initial_metadata()
3213-
3214-
def _exchange_cookie_metadata_requestor(self) -> Coroutine:
3215-
request = exchange_meta_rpc_pb.VersionRequest()
3216-
return self.stubMeta.Version(request).initial_metadata()
3217-
3218-
def _explorer_cookie_metadata_requestor(self) -> Coroutine:
3219-
request = explorer_rpc_pb.GetBlocksRequest()
3220-
return self.stubExplorer.GetBlocks(request).initial_metadata()
3221-
32223210
def _initialize_timeout_height_sync_task(self):
32233211
self._cancel_timeout_height_sync_task()
32243212
self._timeout_height_sync_task = asyncio.get_event_loop().create_task(self._timeout_height_sync_process())

0 commit comments

Comments
 (0)