hriemann 0.2.0.1 → 0.2.1.0
raw patch · 2 files changed
+10/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Network.Monitoring.Riemann.BatchClient: bufferlessBatchClient :: HostName -> Port -> Int -> IO BatchClientNoBuffer
Files
hriemann.cabal view
@@ -1,5 +1,5 @@ name: hriemann-version: 0.2.0.1+version: 0.2.1.0 synopsis: Initial project template from stack description: A Riemann Client for Haskell homepage: https://github.com/shmish111/hriemann
src/Network/Monitoring/Riemann/BatchClient.hs view
@@ -49,6 +49,15 @@ _ <- forkIO $ riemannConsumer batchSize q connection return $ BatchClient inChan +bufferlessBatchClient :: HostName -> Port -> Int -> IO BatchClientNoBuffer+bufferlessBatchClient hostname port batchSize+ | batchSize <= 0 = error "Batch Size must be positive"+ | otherwise = do+ connection <- TCP.tcpConnection hostname port+ q <- newQueue+ _ <- forkIO $ riemannConsumer batchSize q connection+ return $ BatchClientNoBuffer q+ overflowConsumer :: Unagi.OutChan LogCommand -> Queue LogCommand -> Int