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

service:sync: Only fetch head from API when no head arg #887

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

dguenther
Copy link
Member

Summary

The service:sync command fetches the head from the API, but discards it if args.head is set. This PR only fetches the API head if it's going to be used, and adjusts the logs accordingly.

This shouldn't change functionality because the code existing code still prioritizes args.head if it's set.

Testing Plan

Ran service:sync on an existing node with args.head passed and without args.head passed.

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes
[x] No

@dguenther dguenther requested a review from a team as a code owner January 12, 2022 19:41
@NullSoldier NullSoldier merged commit 684c9aa into staging Jan 14, 2022
@NullSoldier NullSoldier deleted the change-sync-logs branch January 14, 2022 21:20
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.

None yet

3 participants