minus-squarenrab@sh.itjust.workstoRust@programming.dev•sqlx::Transaction and Arc<Mutex<Transaction>>linkfedilinkEnglisharrow-up5·15 days agoMake sure there’s only one strong reference and call Arc::into_inner to move it out of the Arc. Same can be done with Mutex::into_inner to move the transaction out of the mutex linkfedilink
minus-squarenrab@sh.itjust.workstoLinux@lemmy.ml•What distro(s) do you use?linkfedilinkarrow-up3arrow-down1·1 year agoNixOS everywhere (except for one server which I have yet to migrate from Rocky to NixOS) linkfedilink
Make sure there’s only one strong reference and call Arc::into_inner to move it out of the Arc. Same can be done with Mutex::into_inner to move the transaction out of the mutex