mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-06-04 21:41:24 +00:00
random connection and message IDs
This commit is contained in:
+1
-1
@@ -16,8 +16,8 @@ import Control.Monad
|
||||
import Control.Monad.IO.Unlift
|
||||
import Control.Monad.Reader
|
||||
import Crypto.Random
|
||||
import Data.ByteString (ByteString)
|
||||
import Data.ByteString.Base64
|
||||
import Data.ByteString.Char8 (ByteString)
|
||||
import qualified Data.ByteString.Char8 as B
|
||||
import qualified Data.Map.Strict as M
|
||||
import Data.Singletons
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import UnliftIO.IO
|
||||
|
||||
testSMPClient :: MonadUnliftIO m => HostName -> ServiceName -> (Handle -> m a) -> m a
|
||||
testSMPClient host port client = do
|
||||
threadDelay 100 -- TODO hack: thread delay for SMP server to start
|
||||
threadDelay 1000 -- TODO hack: thread delay for SMP server to start
|
||||
runTCPClient host port $ \h -> do
|
||||
line <- getLn h
|
||||
if line == "Welcome to SMP"
|
||||
|
||||
Reference in New Issue
Block a user