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

Refactor fed envy event handling #731

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Dec 11, 2023

This PR refactors the federation envoy event handling routine with the goal of code simplification and to gain some line length breathing room.

This PR shouldn't change any "business logic".

@ffranr ffranr self-assigned this Dec 11, 2023
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Nice refactor, LGTM 🎉

universe/auto_syncer.go Outdated Show resolved Hide resolved
universe/auto_syncer.go Outdated Show resolved Hide resolved
@ffranr ffranr force-pushed the refactor-fed-envy-event-handling branch from 8cad828 to 291240a Compare December 11, 2023 15:35
@ffranr ffranr requested a review from guggero December 11, 2023 15:35
@ffranr ffranr force-pushed the refactor-fed-envy-event-handling branch from 291240a to a107752 Compare December 11, 2023 15:45
Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

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

LGTM!
Nice cleanup, I'm always a fan of this approach as syncer now is simpler & more readable. No need to go through code you don't want to read 👍

This commit extracts a tick handler method from the federation envoy
event handler routine. The goal of this commit is code simplification
and to gain some line length breathing room.
This commit extracts a push request handler method from the federation
envoy event handler routine. The goal of this commit is code
simplification and to gain some line length breathing room.
This commit extracts a batch push request handler method from the
federation envoy event handler routine. The goal of this commit is code
simplification and to gain some line length breathing room.
@ffranr ffranr force-pushed the refactor-fed-envy-event-handling branch from a107752 to 52ac13f Compare December 12, 2023 14:22
@ffranr ffranr enabled auto-merge December 12, 2023 14:32
@ffranr ffranr added this pull request to the merge queue Dec 12, 2023
Merged via the queue into lightninglabs:main with commit a51aaa4 Dec 12, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants