diff --git a/src/ax/aggregate/saga.go b/src/ax/aggregate/saga.go index 5f94d1c..bc7635e 100644 --- a/src/ax/aggregate/saga.go +++ b/src/ax/aggregate/saga.go @@ -87,8 +87,6 @@ func (sg *Saga) MessageTypes() (tr ax.MessageTypeSet, mt ax.MessageTypeSet) { // // It is called when a "trigger" message is received and there is no // existing saga instance. env contains the "trigger" message. -// -// If err is nil, id must be a valid InstanceID, and d must be non-nil. func (sg *Saga) GenerateInstanceID(ctx context.Context, env ax.Envelope) (id saga.InstanceID, err error) { m := env.Message.(ax.Command) v, err := sg.Identifier.AggregateID(m) diff --git a/src/ax/saga/saga.go b/src/ax/saga/saga.go index e426f76..794c4c6 100644 --- a/src/ax/saga/saga.go +++ b/src/ax/saga/saga.go @@ -42,8 +42,6 @@ type Saga interface { // // It is called when a "trigger" message is received and there is no // existing saga instance. env contains the "trigger" message. - // - // If err is nil, id must be a valid InstanceID, and d must be non-nil. GenerateInstanceID(ctx context.Context, env ax.Envelope) (id InstanceID, err error) // NewData returns a pointer to a new zero-value instance of the