Commit 96e378d 1 parent eaeefa4 commit 96e378d Copy full SHA for 96e378d
File tree 1 file changed +4
-3
lines changed
core/src/main/scala/mongo4cats
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ package mongo4cats
18
18
19
19
import cats .effect .Async
20
20
import fs2 .Stream
21
- import fs2 .interop .reactivestreams
21
+ import fs2 .interop .flow
22
22
import org .reactivestreams .Publisher
23
+ import org .reactivestreams .FlowAdapters
23
24
24
25
object helpers {
25
26
@@ -36,9 +37,9 @@ object helpers {
36
37
boundedStream(1 ).compile.drain
37
38
38
39
def stream [F [_]: Async ]: Stream [F , T ] =
39
- reactivestreams .fromPublisher(publisher, DefaultStreamChunkSize )
40
+ flow .fromPublisher(FlowAdapters .toFlowPublisher( publisher) , DefaultStreamChunkSize )
40
41
41
42
def boundedStream [F [_]: Async ](chunkSize : Int ): Stream [F , T ] =
42
- reactivestreams .fromPublisher(publisher, chunkSize)
43
+ flow .fromPublisher(FlowAdapters .toFlowPublisher( publisher) , chunkSize)
43
44
}
44
45
}
You can’t perform that action at this time.
0 commit comments