Skip to content

Commit 3f51c5f

Browse files
committed
Fix ranging over eventHandlers.
1 parent 6e01468 commit 3f51c5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/eventhandler/eventhandler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
149149
}(uplinkEvent)
150150

151151
} else {
152-
for id, f := range h.eventHandlers {
152+
for id := range h.eventHandlers {
153+
f := h.eventHandlers[id]
153154
go func(pl integration.UplinkEvent) {
154155
if err := f(context.Background(), pl); err != nil {
155156
log.WithError(err).WithField("id", id).Error("integration/eventhandler: uplink event handler error")

0 commit comments

Comments
 (0)