aboutsummaryrefslogtreecommitdiff
path: root/src/Ssb/Peer/RPC/Gossip.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ssb/Peer/RPC/Gossip.hs')
-rw-r--r--src/Ssb/Peer/RPC/Gossip.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ssb/Peer/RPC/Gossip.hs b/src/Ssb/Peer/RPC/Gossip.hs
index 80e1aac..97eff4c 100644
--- a/src/Ssb/Peer/RPC/Gossip.hs
+++ b/src/Ssb/Peer/RPC/Gossip.hs
@@ -103,7 +103,7 @@ newGossiper = do
return $ Gossiper mVar
addFeed :: ToJSON a => Gossiper a -> Feed.Feed a -> IO ()
-addFeed (Gossiper (mFeeds)) feed = do
+addFeed (Gossiper mFeeds) feed = do
atomically $ do
feeds <- takeTMVar mFeeds
putTMVar mFeeds (Feed.insert feed feeds)
@@ -115,7 +115,7 @@ writeFeed stream (Feed.Feed _ msgs) = do
(\msg -> do
let msg' = Feed.encodeJSONVerifiableMessage msg
err <- RPC.writeStream stream def (RPC.JSONPayload msg')
- either (\err -> putStrLn err) (\_ -> return ()) err
+ either putStrLn (\_ -> return ()) err
)
instance ToJSON a => RPC.Handler (Gossiper a) where