summaryrefslogtreecommitdiff
path: root/main/Test.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-06-01 17:39:58 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-06-12 20:53:10 +0200
commite8f3cbe08071c0507abafa76d0bf9d32908bbd7e (patch)
tree275347fffda7313b81ae3cfffc2df08d5cf20d17 /main/Test.hs
parent0cc2b3ee83e46608495f4fb92ea8c2ca48b4e306 (diff)
Discovery search using global state to ask new peers
Diffstat (limited to 'main/Test.hs')
-rw-r--r--main/Test.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/Test.hs b/main/Test.hs
index 0181575..75eaaaf 100644
--- a/main/Test.hs
+++ b/main/Test.hs
@@ -880,8 +880,5 @@ cmdDiscoveryConnect = do
st <- asks tiStorage
[ tref ] <- asks tiParams
Just ref <- liftIO $ readRef st $ encodeUtf8 tref
-
Just RunningServer {..} <- gets tsServer
- peers <- liftIO $ getCurrentPeerList rsServer
- forM_ peers $ \peer -> do
- sendToPeer peer $ DiscoverySearch ref
+ discoverySearch rsServer ref