Do not print twice that we received a list of orphan domains.

This commit is contained in:
Philippe Pittoli 2024-03-23 11:26:23 +01:00
parent 71a27d2a35
commit c7bd61ce36

View File

@ -312,8 +312,7 @@ handleQuery = case _ of
H.modify_ _ { matching_users = A.filter (\x -> x.uid /= msg.uid) matching_users }
-- Unexpected message.
_ -> do
H.raise $ Log $ ErrorLog $ "Authentication server didn't send a valid message."
_ -> H.raise $ Log $ ErrorLog $ "Authentication server didn't send a valid message."
pure (Just a)
ConnectionIsDown a -> do
@ -325,6 +324,5 @@ handleQuery = case _ of
pure (Just a)
GotOrphanDomainList domains a -> do
H.raise $ Log $ SuccessLog "Got orphan domain list!"
H.modify_ _ { orphan_domains = domains }
pure (Just a)