From e959a67f87d5a7264724fdabc759bce92a1de68c Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Tue, 2 Jun 2020 12:46:55 +0800 Subject: [PATCH] Fix callbacks with Match --- callbacks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/callbacks.go b/callbacks.go index c5654c50..a9a6dd85 100644 --- a/callbacks.go +++ b/callbacks.go @@ -150,6 +150,7 @@ func (p *processor) compile() (err error) { callbacks = append(callbacks, callback) } } + p.callbacks = callbacks if p.fns, err = sortCallbacks(p.callbacks); err != nil { logger.Default.Error(context.Background(), "Got error when compile callbacks, got %v", err)