add nodepool.disconnect() to hdi guide

This commit is contained in:
cloudwithax 2023-03-10 23:58:53 -05:00
parent 19c06301e7
commit 834e5bde62
1 changed files with 13 additions and 0 deletions

View File

@ -137,6 +137,19 @@ await NodePool.get_best_node(algorithm=NodeAlgorithm.xyz)
``` ```
## Disconnecting all nodes from the pool
To disconnect all nodes from the pool, we need to use `NodePool.disconnect()`
```py
await NodePool.disconnect()
```
After running this function, all nodes in the pool should disconnect and no longer be available to use.