Skip to content

Commit

Permalink
Merge pull request #1940 from tursodatabase/fix-duplicate-check-in-sync
Browse files Browse the repository at this point in the history
libsql: Remove duplicate check in pull_with_retry()
  • Loading branch information
penberg authored Jan 31, 2025
2 parents 8b3c9a7 + 6be91d4 commit c6e4e09
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libsql/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ impl SyncContext {
.ok_or_else(|| SyncError::JsonValue(generation.clone()))?;
return Ok(PullResult::EndOfGeneration { max_generation: generation as u32 });
}
if res.status() == StatusCode::BAD_REQUEST {
return Err(SyncError::PullFrame(res.status(), "Bad Request".to_string()).into());
}
// If we've retried too many times or the error is not a server error,
// return the error.
if nr_retries > max_retries || !res.status().is_server_error() {
Expand Down

0 comments on commit c6e4e09

Please sign in to comment.