DATAMONGO-2356 - Move off deprecated Flux/Mono.usingWhen to their replacement overrides.
This commit is contained in:
@@ -573,7 +573,8 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati
|
||||
return Flux.usingWhen(Mono.just(session), //
|
||||
s -> ReactiveMongoTemplate.this.withSession(action, s), //
|
||||
ClientSession::commitTransaction, //
|
||||
ClientSession::abortTransaction) //
|
||||
(sess, err) -> sess.abortTransaction(), //
|
||||
ClientSession::commitTransaction) //
|
||||
.doFinally(signalType -> doFinally.accept(session));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class DataBufferPublisherAdapter {
|
||||
state.request(sink, n);
|
||||
});
|
||||
});
|
||||
}, AsyncInputStream::close, AsyncInputStream::close, AsyncInputStream::close) //
|
||||
}, AsyncInputStream::close, (it, err) -> it.close(), AsyncInputStream::close) //
|
||||
.concatMap(Flux::just, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user