summaryrefslogtreecommitdiff
path: root/src/Erebos/Pairing.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-07-29 10:04:33 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-07-29 10:04:33 +0200
commit44094e8f19ad410ac7fc78ddbc9e18f42bc3cf62 (patch)
tree38d95556e0b141afff0f6ee480cd41538bfa6afe /src/Erebos/Pairing.hs
parentd8160f03094e6d18509956efe9bb6aeda31d79c5 (diff)
Rename peerIdentity to getPeerIdentity
Changelog: API: Renamed `Network.peerIdentity` to `getPeerIdentity`.
Diffstat (limited to 'src/Erebos/Pairing.hs')
-rw-r--r--src/Erebos/Pairing.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Erebos/Pairing.hs b/src/Erebos/Pairing.hs
index e3ebf2b..d1fdc79 100644
--- a/src/Erebos/Pairing.hs
+++ b/src/Erebos/Pairing.hs
@@ -209,7 +209,7 @@ pairingRequest :: forall a m e proxy. (PairingResult a, MonadIO m, MonadError e
pairingRequest _ peer = do
self <- liftIO $ serverIdentity $ peerServer peer
nonce <- liftIO $ getRandomBytes 32
- pid <- peerIdentity peer >>= \case
+ pid <- getPeerIdentity peer >>= \case
PeerIdentityFull pid -> return pid
_ -> throwOtherError "incomplete peer identity"
sendToPeerWith @(PairingService a) peer $ \case