File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed 
crates/tap-agent/src/agent Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,7 @@ impl Actor for SenderAccountsManager {
112112                . expect ( "Failed to update indexer_allocations_set channel" ) ; 
113113            async  { } 
114114        } ) ; 
115-         let  mut  pglistener = PgListener :: connect_with ( & pgpool. clone ( ) ) . await . unwrap ( ) ; 
116-         pglistener
117-             . listen ( "scalar_tap_receipt_notification" ) 
118-             . await 
119-             . expect ( 
120-                 "should be able to subscribe to Postgres Notify events on the channel \  
121-                  'scalar_tap_receipt_notification'", 
122-             ) ; 
115+         let  pglistener = PgListener :: connect_with ( & pgpool. clone ( ) ) . await . unwrap ( ) ; 
123116        let  myself_clone = myself. clone ( ) ; 
124117        let  accounts_clone = escrow_accounts. clone ( ) ; 
125118        let  _eligible_allocations_senders_handle =
@@ -475,6 +468,13 @@ async fn new_receipts_watcher(
475468    escrow_accounts_rx :  Receiver < EscrowAccounts > , 
476469    prefix :  Option < String > , 
477470)  { 
471+     pglistener
472+         . listen ( "scalar_tap_receipt_notification" ) 
473+         . await 
474+         . expect ( 
475+             "should be able to subscribe to Postgres Notify events on the channel \  
476+                  'scalar_tap_receipt_notification'", 
477+         ) ; 
478478    loop  { 
479479        // TODO: recover from errors or shutdown the whole program? 
480480        let  pg_notification = pglistener. recv ( ) . await . expect ( 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments