fix loop variable usage

This commit is contained in:
Özgür Kesim 2022-11-17 14:33:09 +01:00
parent 0b3920af52
commit 51fc5ed28d

View File

@ -202,6 +202,7 @@ func (S *Scanner) Run() error {
wg.Add(len(S.observers)) // Wait for this many goroutines
go func() {
for n, observer := range S.observers {
observer := observer
go func() {
err = observer(pid, offset)
if err != nil {