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

fix: fail when user fail to send file to MSP after several retries #362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

undercover-cactus
Copy link
Contributor

This PR remove the TODO comment as #361 will handle this case. The burden of downloading the file will now be on the MSP and not the user anymore.

It also fixes the "Successfully..." logging showing even though the user failed to send the file. This led to confusion.

@undercover-cactus undercover-cactus force-pushed the fix/fail-user-remote-download branch from 939cbdd to d7ac3a1 Compare February 12, 2025 11:11
@santikaplan santikaplan requested a review from ffarall February 13, 2025 13:44
@@ -383,7 +383,8 @@ where
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
}
Err(RequestError::RequestFailure(RequestFailure::Refused)) => {
// TODO: Handle MSP not receiving file after multiple retries.
// If MSP doesnt receive file, the burden of downloading the file will be on the MSP.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// If MSP doesnt receive file, the burden of downloading the file will be on the MSP.
// If MSP doesn't receive file, the burden of downloading the file will be on the MSP.

@ffarall ffarall self-requested a review February 13, 2025 14:17
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.

2 participants