Fix callbacks with Match

This commit is contained in:
Jinzhu 2020-06-02 12:46:55 +08:00
parent 669ce48f19
commit e959a67f87
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ func (p *processor) compile() (err error) {
callbacks = append(callbacks, callback) callbacks = append(callbacks, callback)
} }
} }
p.callbacks = callbacks
if p.fns, err = sortCallbacks(p.callbacks); err != nil { if p.fns, err = sortCallbacks(p.callbacks); err != nil {
logger.Default.Error(context.Background(), "Got error when compile callbacks, got %v", err) logger.Default.Error(context.Background(), "Got error when compile callbacks, got %v", err)