Skip to content

Commit

Permalink
fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Nov 7, 2023
1 parent 48758bd commit 592ee93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Network/HTTP2/Arch/Stream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ remove ref k = atomicModifyIORef' ref $ \StreamTable{..} ->
search :: IORef StreamTable -> M.Key -> IO (Maybe Stream)
search ref k = M.lookup k . streams <$> readIORef ref

updateAllStreamWindow :: (WindowSize -> WindowSize) -> IORef StreamTable -> IO ()
updateAllStreamWindow
:: (WindowSize -> WindowSize) -> IORef StreamTable -> IO ()
updateAllStreamWindow adst ref = do
strms <- streams <$> readIORef ref
forM_ strms $ \strm -> atomically $ modifyTVar (streamWindow strm) adst
Expand Down

0 comments on commit 592ee93

Please sign in to comment.