Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Remove unreachable code.
Browse files Browse the repository at this point in the history
I had moved the place where the exception is thrown and forgot to remove
the previous code.
  • Loading branch information
andreabedini committed Jun 9, 2022
1 parent d132917 commit affc1af
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions plutus-streaming/src/Plutus/Streaming.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@ withChainSyncEventStream socketPath networkId point consumer = do
-- FIXME this comes from the config file but Cardano.Api does not expose readNetworkConfig!
epochSlots = EpochSlots 40

clientThread = do
connectToLocalNode connectInfo localNodeClientProtocols
-- the only reason connectToLocalNode can terminate successfully is if it
-- doesn't find an intersection, we report that case to the
-- consumer as an exception
throw NoIntersectionFound

withAsync clientThread $ \a -> do
withAsync (connectToLocalNode connectInfo localNodeClientProtocols) $ \a -> do
-- Make sure all exceptions in the client thread are passed to the consumer thread
link a
-- Run the consumer
Expand Down

0 comments on commit affc1af

Please sign in to comment.