wip, fix tcp

This commit is contained in:
voidlizard 2025-03-18 08:11:24 +03:00
parent 0d90b4df05
commit 21f60b6ce9
1 changed files with 5 additions and 5 deletions

View File

@ -249,11 +249,11 @@ runMessagingTCP env@MessagingTCP{..} = liftIO do
sweepCookies <- ContT $ withAsync $ forever do sweepCookies <- ContT $ withAsync $ forever do
pause @'Seconds 300 pause @'Seconds 300
-- atomically do atomically do
-- pips <- readTVar _tcpPeerConn pips <- readTVar _tcpPeerConn
-- modifyTVar _tcpPeerToCookie (HM.filterWithKey (\k _ -> HM.member k pips)) modifyTVar _tcpPeerToCookie (HM.filterWithKey (\k _ -> HM.member k pips))
-- alive <- readTVar _tcpPeerToCookie <&> HS.fromList . HM.elems alive <- readTVar _tcpPeerToCookie <&> HS.fromList . HM.elems
-- modifyTVar _tcpPeerCookie (HM.filterWithKey (\k _ -> HS.member k alive)) modifyTVar _tcpPeerCookie (HM.filterWithKey (\k _ -> HS.member k alive))
sweep <- ContT $ withAsync $ forever do sweep <- ContT $ withAsync $ forever do
pause @'Seconds 300 pause @'Seconds 300