File tree Expand file tree Collapse file tree
libs/jwst-storage/src/storage/blobs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,15 @@ use sea_orm::{DatabaseConnection, EntityTrait};
1010use std:: collections:: HashMap ;
1111use std:: sync:: Arc ;
1212
13+ #[ allow( unused) ]
1314pub ( super ) type S3BlobModel = <S3Blobs as EntityTrait >:: Model ;
15+ #[ allow( unused) ]
1416type BlobActiveModel = entities:: s3_blobs:: ActiveModel ;
17+ #[ allow( unused) ]
1518type BlobColumn = <S3Blobs as EntityTrait >:: Column ;
1619
1720#[ derive( Clone ) ]
21+ #[ allow( unused) ]
1822pub struct BlobS3DBStorage {
1923 bucket : Arc < Bucket > ,
2024 pub ( super ) pool : DatabaseConnection ,
@@ -29,7 +33,7 @@ impl AsRef<DatabaseConnection> for BlobS3DBStorage {
2933
3034impl SharedDBOps for BlobS3DBStorage { }
3135
32- #[ allow( unused_variables ) ]
36+ #[ allow( unused ) ]
3337impl BlobS3DBStorage {
3438 pub async fn init_with_pool ( ) -> JwstStorageResult < Self > {
3539 todo ! ( )
@@ -91,7 +95,7 @@ impl BlobStorage<JwstStorageError> for S3Storage {
9195 id : String ,
9296 ) -> JwstResult < bool , JwstStorageError > {
9397 let workspace_id = workspace. unwrap_or ( "__default__" . into ( ) ) ;
94- match self . op . delete ( & * format ! ( "{}/{}" , workspace_id, id) ) . await {
98+ match self . op . delete ( & format ! ( "{}/{}" , workspace_id, id) ) . await {
9599 Ok ( _) => Ok ( true ) ,
96100 Err ( e) => Err ( JwstStorageError :: from ( e) ) ,
97101 }
You can’t perform that action at this time.
0 commit comments