File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
core/shared/src/main/scala/fs2/concurrent Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -287,9 +287,9 @@ object SignallingRef {
287287 def cleanup (id : Long ): F [Unit ] =
288288 state.update(s => s.copy(listeners = s.listeners - id))
289289
290- Resource .eval(state.get) .map { s =>
290+ Resource .eval(state.get.map { s =>
291291 (s.value, Stream .bracket(newId)(cleanup).flatMap(go(_, s.lastUpdate)))
292- }
292+ })
293293 }
294294
295295 def set (a : A ): F [Unit ] = update(_ => a)
@@ -565,14 +565,14 @@ object SignallingMapRef {
565565 }
566566 }
567567
568- Resource .eval(state.get) .map { state =>
568+ Resource .eval(state.get.map { state =>
569569 (
570570 state.keys.get(k).flatMap(_.value),
571571 Stream
572572 .bracket(newId)(cleanup)
573573 .flatMap(go(_, state.keys.get(k).fold(- 1L )(_.lastUpdate)))
574574 )
575- }
575+ })
576576 }
577577
578578 def set (v : Option [V ]): F [Unit ] = update(_ => v)
You can’t perform that action at this time.
0 commit comments