Skip to content

Commit c6e4e09

Browse files
authored
Merge pull request #1940 from tursodatabase/fix-duplicate-check-in-sync
libsql: Remove duplicate check in pull_with_retry()
2 parents 8b3c9a7 + 6be91d4 commit c6e4e09

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libsql/src/sync.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ impl SyncContext {
300300
.ok_or_else(|| SyncError::JsonValue(generation.clone()))?;
301301
return Ok(PullResult::EndOfGeneration { max_generation: generation as u32 });
302302
}
303-
if res.status() == StatusCode::BAD_REQUEST {
304-
return Err(SyncError::PullFrame(res.status(), "Bad Request".to_string()).into());
305-
}
306303
// If we've retried too many times or the error is not a server error,
307304
// return the error.
308305
if nr_retries > max_retries || !res.status().is_server_error() {

0 commit comments

Comments
 (0)