Skip to content

Commit

Permalink
trace-dispatcher: direct async instead of withAsync.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Shevchenko committed Oct 21, 2021
1 parent c223a67 commit e218ef1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions trace-dispatcher/src/Cardano/Logging/Forwarding.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module Cardano.Logging.Forwarding
) where

import Codec.CBOR.Term (Term)
import Control.Concurrent.Async (race_, wait, withAsync)
import Control.Concurrent.Async (async, race_, wait)
import Control.Monad (void)
import Control.Monad.IO.Class

import "contra-tracer" Control.Tracer (contramap, stdoutTracer)
Expand Down Expand Up @@ -93,13 +94,12 @@ launchForwarders
-> TF.ForwarderConfiguration TraceObject
-> ForwardSink TraceObject
-> IO ()
launchForwarders iomgr TraceConfig{tcForwarder} store ekgConfig tfConfig sink = flip
withAsync
wait
$ runActionInLoop
(launchForwardersViaLocalSocket iomgr tcForwarder (ekgConfig, tfConfig) sink store)
(TF.LocalPipe p)
1
launchForwarders iomgr TraceConfig{tcForwarder} store ekgConfig tfConfig sink =
void . async $
runActionInLoop
(launchForwardersViaLocalSocket iomgr tcForwarder (ekgConfig, tfConfig) sink store)
(TF.LocalPipe p)
1
where
LocalSocket p = tofAddress tcForwarder

Expand Down

0 comments on commit e218ef1

Please sign in to comment.