git.iko.soy/distributed-process
on master help sign in
Fix closeAll references.
97557fbNicolas Wu
examples/DemoTransport.hs+1−1
@@ -30,7 +30,7 @@ demo0 = do
30 mapM_ (\n -> send sourceEnd [BS.pack ("hello " ++ show n)]) [1 .. 10]
30 mapM_ (\n -> send sourceEnd [BS.pack ("hello " ++ show n)]) [1 .. 10]
31 threadDelay 100000
31 threadDelay 100000
32
32
33− closeAll targetEnd
33+ closeTargetEnd targetEnd
34
34
35-- | Check endpoint serialization and deserialization.
35-- | Check endpoint serialization and deserialization.
36demo1 :: IO ()
36demo1 :: IO ()
network-transport/src/Network/Transport.hs+1−1
@@ -77,7 +77,7 @@ data SourceEnd = SourceEnd
77
77
78-- | A `TargetEnd` provides a `receive` function that allows messages
78-- | A `TargetEnd` provides a `receive` function that allows messages
79-- to be received from the corresponding `SourceEnd`s.
79-- to be received from the corresponding `SourceEnd`s.
80−-- The `closeAll` function closes all connections to this target,
80+-- The `closeTargetEnd` function closes all connections to this target,
81-- and all new connections will be refused.
81-- and all new connections will be refused.
82data TargetEnd = TargetEnd
82data TargetEnd = TargetEnd
83 { receive :: IO [ByteString]
83 { receive :: IO [ByteString]