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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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