Skip to content

Commit

Permalink
Fix localRootPeersProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed Apr 20, 2022
1 parent c1d0c10 commit 4474ba0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ localRootPeersProvider tracer
mapM_ (traceWith tracer . TraceLocalRootFailure domain . DNSError)
errs

if null results
then return $ Left errs
else do
if null errs
then do
traceWith tracer (TraceLocalRootResult domain results)
return $ Right [ (( toPeerAddr addr dapPortNumber
, advertisePeer)
, _ttl)
| (addr, _ttl) <- results ]
else return $ Left errs

monitorDomain
:: Resource m (DNSorIOError exception) resolver
Expand Down

0 comments on commit 4474ba0

Please sign in to comment.