Skip to content

Commit

Permalink
[Keystone] Return an error from Launcher on invariant validation (#14128
Browse files Browse the repository at this point in the history
)

Co-authored-by: Vyzaldy Sanchez <vyzaldysanchez@gmail.com>
  • Loading branch information
bolekk and vyzaldysanchez authored Aug 15, 2024
1 parent 1b58436 commit c3b1f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/capabilities/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (w *launcher) Launch(ctx context.Context, state *registrysyncer.LocalRegist

// NOTE: this is enforced on-chain and so should never happen.
if len(myWorkflowDONs) > 1 {
w.lggr.Error("invariant violation: node is part of more than one workflowDON: this shouldn't happen.")
return errors.New("invariant violation: node is part of more than one workflowDON")
}

for _, rcd := range remoteCapabilityDONs {
Expand Down

0 comments on commit c3b1f90

Please sign in to comment.