diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-29 23:23:11 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-08-30 20:53:55 +0200 |
commit | d2aec16007371fa78a16cde10c3370eb041cd86f (patch) | |
tree | e4282ec64a778cc47fc8dbe1aacaee2f5aee5ae1 /src/Network.hs | |
parent | 73e91c5639257990943060d29549ab0b5af957e8 (diff) |
Move keys from peer storage after head commit
Diffstat (limited to 'src/Network.hs')
-rw-r--r-- | src/Network.hs | 2 |
1 files changed, 2 insertions, 0 deletions
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 |