From 834e5bde621db446cd19f6717cb1b02bfee91eae Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Fri, 10 Mar 2023 23:58:53 -0500 Subject: [PATCH] add nodepool.disconnect() to hdi guide --- docs/hdi/pool.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/hdi/pool.md b/docs/hdi/pool.md index 7618f13..1fc49bb 100644 --- a/docs/hdi/pool.md +++ b/docs/hdi/pool.md @@ -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. + +