File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
kernel/src/engine/default Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -135,13 +135,11 @@ impl<E: TaskExecutor> FileSystemClient for ObjectStoreFileSystemClient<E> {
135
135
if url. is_presigned ( ) {
136
136
// have to annotate type here or rustc can't figure it out
137
137
Ok :: < bytes:: Bytes , Error > ( reqwest:: get ( url) . await ?. bytes ( ) . await ?)
138
+ } else if let Some ( rng) = range {
139
+ Ok ( store. get_range ( & path, rng) . await ?)
138
140
} else {
139
- if let Some ( rng) = range {
140
- Ok ( store. get_range ( & path, rng) . await ?)
141
- } else {
142
- let result = store. get ( & path) . await ?;
143
- Ok ( result. bytes ( ) . await ?)
144
- }
141
+ let result = store. get ( & path) . await ?;
142
+ Ok ( result. bytes ( ) . await ?)
145
143
}
146
144
}
147
145
} )
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl<E: TaskExecutor> Engine for DefaultEngine<E> {
158
158
}
159
159
}
160
160
161
- pub ( self ) trait UrlExt {
161
+ trait UrlExt {
162
162
fn is_presigned ( & self ) -> bool ;
163
163
}
164
164
You can’t perform that action at this time.
0 commit comments