ZClientSessionLive#commitTransaction and ZClientSessionLive#abortTransaction ignore their results and always return ().
The problem stems from the fact that unlike com.mongodb.reactivestreams.client.ClientSession#startTransaction(), which just returns void, com.mongodb.reactivestreams.client.ClientSession#commitTransaction actually returns Publisher<Void> but ZClientSessionLive#commitTransaction is implemented as if it also just returned void. Same for #abortTransaction.
The mongo4cats.client.LiveClientSession does not share this problem.
ZClientSessionLive#commitTransaction
andZClientSessionLive#abortTransaction
ignore their results and always return()
. The problem stems from the fact that unlikecom.mongodb.reactivestreams.client.ClientSession#startTransaction()
, which just returnsvoid
,com.mongodb.reactivestreams.client.ClientSession#commitTransaction
actually returnsPublisher<Void>
butZClientSessionLive#commitTransaction
is implemented as if it also just returnedvoid
. Same for#abortTransaction
. Themongo4cats.client.LiveClientSession
does not share this problem.