use native Exception.handle to respawn

This commit is contained in:
Sergey Ivanov 2023-08-16 16:54:45 +04:00
parent b7079c2915
commit 3a04d7f0ab
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ runPeer :: forall e s . ( e ~ L4Proto
, HasStorage (PeerM e IO)
) => PeerOpts -> IO ()
runPeer opts = U.handle (\e -> myException e
runPeer opts = Exception.handle (\e -> myException e
>> performGC
>> respawn opts
) $ runResourceT do