File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2215,11 +2215,11 @@ impl<RT: Runtime> Application<RT> {
2215
2215
Ok ( storage_id)
2216
2216
}
2217
2217
2218
- pub async fn get_file (
2218
+ pub async fn get_file_entry (
2219
2219
& self ,
2220
2220
component : ComponentId ,
2221
2221
storage_id : FileStorageId ,
2222
- ) -> anyhow:: Result < FileStream > {
2222
+ ) -> anyhow:: Result < FileStorageEntry > {
2223
2223
let mut file_storage_tx = self . begin ( Identity :: system ( ) ) . await ?;
2224
2224
2225
2225
let Some ( file_entry) = self
@@ -2235,7 +2235,15 @@ impl<RT: Runtime> Application<RT> {
2235
2235
)
2236
2236
. into ( ) ) ;
2237
2237
} ;
2238
+ Ok ( file_entry)
2239
+ }
2238
2240
2241
+ pub async fn get_file (
2242
+ & self ,
2243
+ component : ComponentId ,
2244
+ storage_id : FileStorageId ,
2245
+ ) -> anyhow:: Result < FileStream > {
2246
+ let file_entry = self . get_file_entry ( component, storage_id) . await ?;
2239
2247
self
2240
2248
. file_storage
2241
2249
. transactional_file_storage
You can’t perform that action at this time.
0 commit comments