File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1003,15 +1003,15 @@ waitUntilMatch nodes predicate = do
10031003 , unlines (show <$> msgs)
10041004 ]
10051005 where
1006- go seenOutputs (nid, n) = do
1007- out <-
1008- raceLabelled ( " wait-for-next-msg " , waitForNextMessage n) ( " wait-for-next " , waitForNext n) >>= \ case
1009- Left msg -> failure $ " waitUntilMatch received unexpected client message: " <> show msg
1010- Right out -> pure out
1011- atomically (modifyTVar' seenOutputs ((nid, out) : ))
1012- case predicate out of
1013- Just x -> pure x
1014- Nothing -> go seenOutputs (nid, n)
1006+ go seenOutputs (nid, n) =
1007+ raceLabelled ( " wait-for-next-msg " , waitForNextMessage n) ( " wait-for-next " , waitForNext n) >>= \ case
1008+ Left SyncedStatusReport {} -> go seenOutputs (nid, n)
1009+ Left msg -> failure $ " waitUntilMatch received unexpected client message: " <> show msg
1010+ Right out -> do
1011+ atomically (modifyTVar' seenOutputs ((nid, out) : ))
1012+ case predicate out of
1013+ Just x -> pure x
1014+ Nothing -> go seenOutputs (nid, n)
10151015
10161016 oneMonth = 3600 * 24 * 30
10171017
You can’t perform that action at this time.
0 commit comments