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.
1 parent 9859a98 commit 5f20d79Copy full SHA for 5f20d79
src/ZooKeeper.hs
@@ -36,6 +36,7 @@ module ZooKeeper
36
, zookeeperClose
37
) where
38
39
+import Control.Exception (catch)
40
import Control.Monad (void, when, zipWithM, (<=<))
41
import Data.Bifunctor (first)
42
import Data.Maybe (fromMaybe)
@@ -265,7 +266,7 @@ zooDeleteAll :: HasCallStack => T.ZHandle -> CBytes -> IO ()
265
266
zooDeleteAll zh path = do
267
T.StringsCompletion (T.StringVector children) <- zooGetChildren zh path
268
mapM_ (zooDeleteAll zh <=< ZF.join path) children
- zooDelete zh path Nothing
269
+ catch (zooDelete zh path Nothing) (\(_::E.ZNONODE) -> pure ())
270
271
-- | Checks the existence of a node in zookeeper.
272
--
0 commit comments