Skip to content

Commit baaa255

Browse files
author
Shlomi Noach
committed
bailing out from onApplyEventStruct()
1 parent 645af21 commit baaa255

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go/logic/migrator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,9 @@ func (this *Migrator) executeWriteFuncs() error {
10741074
select {
10751075
case eventStruct := <-this.applyEventsQueue:
10761076
{
1077-
this.onApplyEventStruct(eventStruct)
1077+
if err := this.onApplyEventStruct(eventStruct); err != nil {
1078+
return err
1079+
}
10781080
}
10791081
default:
10801082
{

0 commit comments

Comments
 (0)