From 027fb6af1bdb4e2f90f2016769297f9f05279acf Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Mon, 23 Mar 2020 14:21:03 +0100 Subject: [PATCH] Minor var. name fixes --- pkg/corredor/service.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/corredor/service.go b/pkg/corredor/service.go index bcc070377..c4f735c6c 100644 --- a/pkg/corredor/service.go +++ b/pkg/corredor/service.go @@ -483,13 +483,14 @@ func (svc *service) registerTriggers(script *ServerScript) []uintptr { ptr := svc.eventRegistry.Register(func(ctx context.Context, ev eventbus.Event) (err error) { // Is this compatible event? - if ev, ok := ev.(Event); ok { + if ce, ok := ev.(Event); ok { // Can only work with corteza compatible events - return svc.exec(ctx, script.Name, runAs, ev) + return svc.exec(ctx, script.Name, runAs, ce) } return nil }, ops...) + ptrs = append(ptrs, ptr) }