bailing out from onApplyEventStruct()

This commit is contained in:
Shlomi Noach 2017-01-04 12:42:21 +02:00
parent 645af21d03
commit baaa255182

View File

@ -1074,7 +1074,9 @@ func (this *Migrator) executeWriteFuncs() error {
select { select {
case eventStruct := <-this.applyEventsQueue: case eventStruct := <-this.applyEventsQueue:
{ {
this.onApplyEventStruct(eventStruct) if err := this.onApplyEventStruct(eventStruct); err != nil {
return err
}
} }
default: default:
{ {