diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2020-12-20 21:47:22 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2020-12-23 22:32:09 +0100 |
commit | 36b9a1ddbddf1477c61809d340cd0b86360a7a83 (patch) | |
tree | 7b327df1b1635270e98391ec1cf63478b8730793 /src/Attach.hs | |
parent | 0c4c6618d43a8b7179f11b8edb1f289169b5f2bc (diff) |
Network: STM-based synchronization rewrite
Diffstat (limited to 'src/Attach.hs')
-rw-r--r-- | src/Attach.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Attach.hs b/src/Attach.hs index 5acc608..4df7e5f 100644 --- a/src/Attach.hs +++ b/src/Attach.hs @@ -97,7 +97,7 @@ attachAccept printMsg h peer = do PeerRequestConfirm -> do liftIO $ printMsg $ "Accepted new attached device, seding updated identity" owner <- liftIO $ mergeSharedIdentity h - PeerIdentityFull pid <- return $ peerIdentity peer + PeerIdentityFull pid <- peerIdentity peer Just secret <- liftIO $ loadKey $ idKeyIdentity owner liftIO $ do identity <- wrappedStore st =<< sign secret =<< wrappedStore st (emptyIdentityData $ idKeyIdentity pid) |