Skip to content

Commit 8b7fa4e

Browse files
authored
chore: declare FileRead trait to be Sync-safe (#1319)
## Which issue does this PR close? - Closes #1318 ## What changes are included in this PR? Declare `FileRead` trait `Sync`-safe. ## Are these changes tested? Not a feature change, so existing unit tests.
1 parent b62e7d4 commit 8b7fa4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/iceberg/src/io/file_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub struct FileMetadata {
220220
/// It's possible for us to remove the async_trait, but we need to figure
221221
/// out how to handle the object safety.
222222
#[async_trait::async_trait]
223-
pub trait FileRead: Send + Unpin + 'static {
223+
pub trait FileRead: Send + Sync + Unpin + 'static {
224224
/// Read file content with given range.
225225
///
226226
/// TODO: we can support reading non-contiguous bytes in the future.

0 commit comments

Comments
 (0)