diff --git a/schema/appdata/mux.go b/schema/appdata/mux.go index 81a4fa795db8..c7b60d631717 100644 --- a/schema/appdata/mux.go +++ b/schema/appdata/mux.go @@ -138,8 +138,8 @@ func ListenerMux(listeners ...Listener) Listener { } mux.onBatch = func(batch PacketBatch) error { - for _, listener := range listeners { - err := batch.apply(&listener) + for i := range listeners { + err := batch.apply(&listeners[i]) if err != nil { return err }