There was a design flaw by using the errgoup.WithContext. Calling the .Wait() method when having a context will cancel all the other goroutines that are part of the group. This behaviour had unforeseen events, that are treated in the transactionWorker, but since they were cancelled by the higher context could not be treated and cancelled.
There was a design flaw by using the
errgoup.WithContext
. Calling the.Wait()
method when having a context will cancel all the other goroutines that are part of the group. This behaviour had unforeseen events, that are treated in thetransactionWorker
, but since they were cancelled by the higher context could not be treated and cancelled.