diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-09-09 20:55:20 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-09-09 21:06:20 +0200 |
commit | 00b3a38e82f7efca943058fb9fc5a3c7712ed3a3 (patch) | |
tree | b39b4ce72bbf5bd1c297a8b340a211584ed86556 /src | |
parent | 1a9b84130aca8ad39d32b45ad011cfac7ce980a2 (diff) |
Flow: rename mapPath to mapFlow
Diffstat (limited to 'src')
-rw-r--r-- | src/Flow.hs | 8 | ||||
-rw-r--r-- | src/Network.hs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Flow.hs b/src/Flow.hs index 349178f..657eafb 100644 --- a/src/Flow.hs +++ b/src/Flow.hs @@ -4,7 +4,7 @@ module Flow ( readFlow, writeFlow, writeFlowBulk, readFlowIO, writeFlowIO, - mapPath, + mapFlow, ) where import Control.Concurrent.STM @@ -47,6 +47,6 @@ writeFlowIO :: Flow r w -> w -> IO () writeFlowIO path = atomically . writeFlow path -mapPath :: (r -> r') -> (w' -> w) -> Flow r w -> Flow r' w' -mapPath rf wf (MappedFlow rf' wf' up) = MappedFlow (rf . rf') (wf' . wf) up -mapPath rf wf up = MappedFlow rf wf up +mapFlow :: (r -> r') -> (w' -> w) -> Flow r w -> Flow r' w' +mapFlow rf wf (MappedFlow rf' wf' up) = MappedFlow (rf . rf') (wf' . wf) up +mapFlow rf wf up = MappedFlow rf wf up diff --git a/src/Network.hs b/src/Network.hs index 5bae036..2e2546b 100644 --- a/src/Network.hs +++ b/src/Network.hs @@ -657,7 +657,7 @@ serverPeerIce :: Server -> IceSession -> IO Peer serverPeerIce server@Server {..} ice = do let paddr = PeerIceSession ice peer <- serverPeer' server paddr - iceSetChan ice $ mapPath undefined (paddr,) serverRawPath + iceSetChan ice $ mapFlow undefined (paddr,) serverRawPath return peer serverPeer' :: Server -> PeerAddress -> IO Peer |