Skip to content
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

create generic helper function for parsing event attributes #6792

Merged
merged 5 commits into from
Jul 11, 2024

Conversation

chandiniv1
Copy link
Contributor

closes: #6651

Copy link
Contributor

@bznein bznein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Leaving the last word to Gjermund :)

Copy link
Contributor

@gjermundgaraba gjermundgaraba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks great! Will wait for one more review before merging :)

Copy link
Contributor

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to also use this in other funcs?

ParsePacketFromEvents and ParseAckFromEvents, maybe?

Align sig with other attr helpers (attrs, key)
Slap docusting
Amend contains to re-use it.
Use in ParseAckFromEvents
Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! pushed some changes, see commit message for em.

Addressed Damian's point, changed in Ack, for Packets I think the switch is more readable than having a lot of ifs one after the other so left it as is.

@DimitrisJim DimitrisJim added this pull request to the merge queue Jul 11, 2024
Merged via the queue into cosmos:main with commit bd2fe00 Jul 11, 2024
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Look into creating a generic helper function for parsing event attributes
5 participants