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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/sync: Remove duplicated call to TrackBandwidth #2694

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Feb 1, 2024

Why this should be merged

Currently a failed request will pass an empty response through the responseChan when the channel is closed. Because failed was set to true it would then call TrackBandwidth again with 0.

How this works

Removes the failed flag entirely and just uses the channel information.

How this was tested

This code doesn't seem to be tested 馃

@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Feb 1, 2024
@StephenButtolph StephenButtolph added this to the v1.11.0 milestone Feb 1, 2024
@StephenButtolph StephenButtolph self-assigned this Feb 1, 2024
@StephenButtolph StephenButtolph marked this pull request as ready for review February 1, 2024 17:41
@StephenButtolph StephenButtolph added this pull request to the merge queue Feb 1, 2024
Merged via the queue into master with commit 271c32e Feb 1, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the track-bandwidth-once branch February 1, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants