test batching SMP v7

This commit is contained in:
Evgeny Poberezkin committed 2024-02-08 23:54:09 +00:00
1 parent 816d9a9d91
commit 3295fbee8b
2 files changed
+184 -25

No files matched your search

+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,