We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
initialize
1 parent 23a862f commit 8f9623eCopy full SHA for 8f9623e
bittensor/core/subtensor_api/__init__.py
@@ -94,13 +94,14 @@ def __init__(
94
def _get_subtensor(self) -> Union["_Subtensor", "_AsyncSubtensor"]:
95
"""Returns the subtensor instance based on the provided config and subtensor type flag."""
96
if self.is_async:
97
- self.initialize = self._subtensor.initialize
98
- return _AsyncSubtensor(
+ _subtensor = _AsyncSubtensor(
99
network=self.network,
100
config=self._config,
101
_mock=self._mock,
102
log_verbose=self.log_verbose,
103
)
+ self.initialize = _subtensor.initialize
104
+ return _subtensor
105
else:
106
return _Subtensor(
107
0 commit comments