-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIGOV-27681 - event generator updates for processing #864
Conversation
jcollins-axway
commented
Dec 4, 2024
- create event report interface and builder to help create it
- add new processor to receive the event report and create transaction events
- use event report in old create event methods to synchronize logic of all processors
- cleanup from linting warnings
return beat.Event{}, errors.New("an event was not created") | ||
} | ||
if len(events) > 1 { | ||
return events[0], errors.New("unexpectedly, more than one event was created, only returning the first") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we are getting only the first one, regardless of if theres more than 1, should this just warn in the if statement, and then fall through to the final return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...unless you really really wanted to return an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would be the agent implementations issue here, the sdk should not enforce that