Skip to content

Commit

Permalink
Don't run forever in the worker thread
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Feb 21, 2024
1 parent 5cd0ece commit e9b4a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kore-rpc-types/src/Kore/JsonRpc/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Control.Concurrent (forkIO, throwTo)
import Control.Concurrent.STM qualified as GHC
import Control.Concurrent.STM.TChan (newTChan, readTChan, writeTChan)
import Control.Exception (Exception (fromException), catch, mask, throw)
import Control.Monad (forM, forM_, forever)
import Control.Monad (forM, forM_)
import Control.Monad.IO.Class (MonadIO (liftIO))
import Control.Monad.Logger (MonadLoggerIO)
import Control.Monad.Logger qualified as Log
Expand Down Expand Up @@ -205,7 +205,7 @@ srv respond handlers = do

liftIO $
forkIO $
forever $
id $
bracketOnReqException
(atomically $ readTChan reqQueue)
(withLog . processReq)

0 comments on commit e9b4a65

Please sign in to comment.