• George Knee's avatar
    batcher refactor: flatten out go routines (#12405) · b3ec4d69
    George Knee authored
    * flatten out batcher goroutines
    
    * move wg increment to parent fn
    
    * ensure mainloop closes before receipts loop
    
    * add comments
    
    * pass a context to both loops
    
    * remove debug lines
    
    * clean up mutex handling in receiptsLoop
    
    * don't need to set default value the first time
    * avoid writing to Logger while holding mutex
    
    * typo
    
    * increase log level and include tx.ID
    
    * fix changes from merge, hoist throttling loop goroutine launch to driver
    
    * call done on waitgroup in throttlingLoop
    
    * move function around
    
    hoping this makes the diff nicer
    b3ec4d69
readme.md 4.63 KB