-
Joshua Gutow authored
Because the batcher is concurrent with respect to sending transactions, the main loop would fetch transaction data & record transaction status updates in different go routines. This would lead to concurrent access of the txChannels map which causes a panic. This commit adds locks to the public methods for the channel manager to make it safe for concurrent use. Co-authored-by:bnoieh <135800952+bnoieh@users.noreply.github.com>
d8cda3f1
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| batch_submitter.go | ||
| channel.go | ||
| channel_builder.go | ||
| channel_builder_test.go | ||
| channel_manager.go | ||
| channel_manager_test.go | ||
| channel_test.go | ||
| config.go | ||
| driver.go | ||
| tx_data.go |