add protocol version in TCP welcome

This commit is contained in:
Evgeny Poberezkin
2020-12-30 18:50:50 +00:00
parent 3c1834f93f
commit f3cd3eac58
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ runSMPServer cfg@ServerConfig {tcpPort} = do
runClient :: (MonadUnliftIO m, MonadReader Env m) => Handle -> m ()
runClient h = do
putLn h "Welcome to SMP"
putLn h "Welcome to SMP v0.2.0"
q <- asks $ tbqSize . config
c <- atomically $ newClient q
s <- asks server
+1 -1
View File
@@ -27,7 +27,7 @@ testSMPClient client = do
threadDelay 5000 -- TODO hack: thread delay for SMP server to start
runTCPClient testHost testPort $ \h -> do
line <- getLn h
if line == "Welcome to SMP"
if line == "Welcome to SMP v0.2.0"
then client h
else error "not connected"