Skip to content

Commit 357cc72

Browse files
author
Time Hoo
committed
fix delete all
1 parent 9859a98 commit 357cc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ZooKeeper.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ zooDeleteAll :: HasCallStack => T.ZHandle -> CBytes -> IO ()
265265
zooDeleteAll zh path = do
266266
T.StringsCompletion (T.StringVector children) <- zooGetChildren zh path
267267
mapM_ (zooDeleteAll zh <=< ZF.join path) children
268-
zooDelete zh path Nothing
268+
catch (zooDelete zh path Nothing) (\(e::ZNONODE) -> pure ())
269269

270270
-- | Checks the existence of a node in zookeeper.
271271
--

0 commit comments

Comments
 (0)