diff options
-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 |