azure_blob.rs: use division instead of left shift (#5572)

Should have been a right shift but I did a left shift. It's constant
folded anyways so we just use a shift.
This commit is contained in:
Arpad Müller
2023-10-16 20:52:07 +02:00
committed by GitHub
parent 0ca342260c
commit 3666df6342

View File

@@ -341,7 +341,7 @@ impl RemoteStorage for AzureBlobStorage {
// to still be representable by signed 64 bit integers).
// TODO remove workaround once the SDK adds open range support
// https://github.com/Azure/azure-sdk-for-rust/issues/1438
let end_exclusive = u64::MAX << 4;
let end_exclusive = u64::MAX / 4;
builder = builder.range(Range::new(start_inclusive, end_exclusive));
}