Skip to content

Commit

Permalink
fix delete all
Browse files Browse the repository at this point in the history
  • Loading branch information
Time Hoo committed Apr 12, 2022
1 parent 9859a98 commit 357cc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZooKeeper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ zooDeleteAll :: HasCallStack => T.ZHandle -> CBytes -> IO ()
zooDeleteAll zh path = do
T.StringsCompletion (T.StringVector children) <- zooGetChildren zh path
mapM_ (zooDeleteAll zh <=< ZF.join path) children
zooDelete zh path Nothing
catch (zooDelete zh path Nothing) (\(e::ZNONODE) -> pure ())

-- | Checks the existence of a node in zookeeper.
--
Expand Down

0 comments on commit 357cc72

Please sign in to comment.