Skip to content

Commit

Permalink
Revert finally where it was originally
Browse files Browse the repository at this point in the history
  • Loading branch information
v0d1ch committed Mar 17, 2023
1 parent 8dd4142 commit b1b3e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-node/src/Hydra/Logging.hs
Expand Up @@ -104,8 +104,8 @@ withTracerOutputTo ::
IO a
withTracerOutputTo hdl namespace action = do
msgQueue <- newTBQueueIO @_ @(Envelope msg) defaultQueueSize
withAsync (writeLogs msgQueue `finally` flushLogs msgQueue) $ \_ ->
action (tracer msgQueue)
withAsync (writeLogs msgQueue) $ \_ ->
action (tracer msgQueue) `finally` flushLogs msgQueue
where
tracer queue =
Tracer $
Expand Down

0 comments on commit b1b3e15

Please sign in to comment.