Help creating tx retry function for PgConnection #3239
Unanswered
0xForerunner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’ve run into a rather tough lifetime issue.
With the goal of building txs like this:
I’ve tried all sorts of lifetime shenanigans but rust seems convinced that borrowing &mut tx inside f is invalid. It feels like these lifetimes should work, but alas they do not.
Beta Was this translation helpful? Give feedback.
All reactions