mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 09:42:05 +01:00
This commit makes sure that no loop variables or other temporary variables are accessed directly in a goroutine but are instead passed into the goroutine through a parameter. This makes sure a copy of the value is put on the stack and is not changed while the outside loop continues.