File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ peekTBQueue (TBQueue _ read _ write _) = do
173173 let (z: zs) = reverse ys -- NB. lazy: we want the transaction to be
174174 -- short, otherwise it will conflict
175175 writeTVar write []
176- writeTVar read zs
176+ writeTVar read (z : zs)
177177 return z
178178
179179-- | A version of 'peekTBQueue' which does not retry. Instead it
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ peekTQueue (TQueue read write) = do
134134 let (z: zs) = reverse ys -- NB. lazy: we want the transaction to be
135135 -- short, otherwise it will conflict
136136 writeTVar write []
137- writeTVar read zs
137+ writeTVar read (z : zs)
138138 return z
139139
140140-- | A version of 'peekTQueue' which does not retry. Instead it
You can’t perform that action at this time.
0 commit comments