diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-12-16 21:30:06 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-12-16 21:30:06 +0100 |
commit | c1fff94d244d6754a0976d0385d4333249fc5ca6 (patch) | |
tree | 2be7e32d674e2ca87660ad03d281772ad9cbd87a /src/Attach.hs | |
parent | 9e07f08c019a4951fff0a969ca3fb88c8a0d9569 (diff) |
Remove unnecessary self identity parameters
Diffstat (limited to 'src/Attach.hs')
-rw-r--r-- | src/Attach.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Attach.hs b/src/Attach.hs index 055c7fe..adb9d2f 100644 --- a/src/Attach.hs +++ b/src/Attach.hs @@ -71,14 +71,13 @@ instance PairingResult AttachIdentity where svcPrint $ "Failed to verify new identity" throwError "Failed to verify new identity" -attachToOwner :: (MonadIO m, MonadError String m) => (String -> IO ()) -> UnifiedIdentity -> Peer -> m () +attachToOwner :: (MonadIO m, MonadError String m) => (String -> IO ()) -> Peer -> m () attachToOwner _ = pairingRequest @AttachIdentity Proxy attachAccept :: (MonadIO m, MonadError String m) => (String -> IO ()) -> Head LocalState -> Peer -> m () attachAccept printMsg h peer = do let st = refStorage $ headRef h - self = headLocalIdentity h - sendToPeerWith self peer $ \case + sendToPeerWith peer $ \case NoPairing -> throwError $ "none in progress" OurRequest {} -> throwError $ "waiting for peer" OurRequestConfirm Nothing -> do |