fixup! iteration limit for QueryID lookups

This commit is contained in:
Trolli Schmittlauch 2020-07-05 18:18:51 +02:00
parent e91f317a8e
commit df7423ce2e

View file

@ -187,7 +187,7 @@ joinOnNewEntriesThread nsSTM = loop
case queryLocalCache nsSnap cache 1 (getNid nsSnap) of
-- empty cache, block until cache changes and then retry
(FORWARD s) | Set.null s -> retry
result -> pure (result, cache)
result -> pure (result, cache)
case lookupResult of
-- already joined
FOUND _ -> do
@ -200,7 +200,7 @@ joinOnNewEntriesThread nsSTM = loop
-- on join failure, sleep and retry
-- TODO: make delay configurable
(const $ threadDelay (30 * 10^6) >> loop)
(const $ pure ())
(const $ pure ())
joinResult
emptyset = Set.empty -- because pattern matches don't accept qualified names