From d2aec16007371fa78a16cde10c3370eb041cd86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 29 Aug 2023 23:23:11 +0200 Subject: Move keys from peer storage after head commit --- src/Network.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Network.hs') diff --git a/src/Network.hs b/src/Network.hs index 96f8527..5bae036 100644 --- a/src/Network.hs +++ b/src/Network.hs @@ -51,6 +51,7 @@ import PubKey import Service import State import Storage +import Storage.Key import Storage.Merge @@ -765,6 +766,7 @@ runPeerServiceOn mbservice peer handler = liftIO $ do putTMVar (serverServiceStates server) global Just h -> do (rsp, (s', gs')) <- runServiceHandler h inp ps gs handler + moveKeys (peerStorage peer) (serverStorage server) when (not (null rsp)) $ do sendToPeerList peer rsp atomically $ do -- cgit v1.2.3