test batching SMP v7

This commit is contained in:
Evgeny Poberezkin
2024-02-08 23:54:09 +00:00
parent 816d9a9d91
commit 3295fbee8b
2 changed files with 184 additions and 25 deletions
+4 -4
View File
@@ -143,8 +143,8 @@ data PClient err msg = PClient
msgQ :: Maybe (TBQueue (ServerTransmission msg))
}
clientStub :: ByteString -> STM (ProtocolClient err msg)
clientStub sessionId = do
clientStub :: ByteString -> Version -> Maybe THandleAuth -> STM (ProtocolClient err msg)
clientStub sessionId thVersion thAuth = do
connected <- newTVar False
clientCorrId <- newTVar 0
sentCommands <- TM.empty
@@ -155,8 +155,8 @@ clientStub sessionId = do
{ action = Nothing,
sessionId,
sessionTs = undefined,
thVersion = currentClientSMPRelayVersion,
thAuth = Nothing,
thVersion,
thAuth,
timeoutPerBlock = undefined,
blockSize = smpBlockSize,
batch = undefined,