mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-04-01 00:56:11 +00:00
fix lint
This commit is contained in:
@@ -321,7 +321,7 @@ smpServer started cfg@ServerConfig {transports, transportConfig = tCfg} = do
|
||||
atomically . modifyTVar' rates' $ (rates :) . take nBuckets
|
||||
where
|
||||
collect :: IntMap CS.ClientStatsData -> CS.ClientStatsC (IntMap Int)
|
||||
collect stats = IM.foldlWithKey' toColumns (CS.clientStatsC IM.empty) stats
|
||||
collect = IM.foldlWithKey' toColumns (CS.clientStatsC IM.empty)
|
||||
where
|
||||
toColumns acc statsId csd =
|
||||
CS.ClientStatsC
|
||||
|
||||
@@ -380,8 +380,8 @@ distribution h =
|
||||
maximal = fst <$> listToMaybe rcdf'
|
||||
}
|
||||
where
|
||||
bot p = fmap fst $ find (\(_, p') -> p' >= p) cdf'
|
||||
top p = fmap fst $ find (\(_, p') -> p' <= 1 - p) rcdf'
|
||||
bot p = fst <$> find (\(_, p') -> p' >= p) cdf'
|
||||
top p = fst <$> find (\(_, p') -> p' <= 1 - p) rcdf'
|
||||
cdf' = cdf h
|
||||
rcdf' = reverse cdf' -- allow find to work from the smaller end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user