fix loop variable usage
This commit is contained in:
parent
0b3920af52
commit
51fc5ed28d
@ -202,6 +202,7 @@ func (S *Scanner) Run() error {
|
|||||||
wg.Add(len(S.observers)) // Wait for this many goroutines
|
wg.Add(len(S.observers)) // Wait for this many goroutines
|
||||||
go func() {
|
go func() {
|
||||||
for n, observer := range S.observers {
|
for n, observer := range S.observers {
|
||||||
|
observer := observer
|
||||||
go func() {
|
go func() {
|
||||||
err = observer(pid, offset)
|
err = observer(pid, offset)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user