BatchFn::load function now able to take &mut self parameter. It brings more flexibility.
Why I need this
The BatchFn::load function needs to be mutable when I use tokio-postgres with this since Client::transaction function requires &mut self.
Maybe we can use Mutex but it seems to me that BatchFn could easily be mutable.
Breaking change
The signature of BatchFn::load function is changed.
I love to use this crate! Thanks for creating!
Added feature
BatchFn::load
function now able to take&mut self
parameter. It brings more flexibility.Why I need this
The
BatchFn::load
function needs to be mutable when I usetokio-postgres
with this sinceClient::transaction
function requires&mut self
. Maybe we can useMutex
but it seems to me thatBatchFn
could easily be mutable.Breaking change
The signature of
BatchFn::load
function is changed.Thanks for reading!