@@ -16,7 +16,7 @@ pub struct BlobStoreS3 {
1616 aws_sdk_s3:: Client ,
1717 std:: pin:: Pin < Box < dyn std:: future:: Future < Output = aws_sdk_s3:: Client > + Send > > ,
1818 > ,
19- container_name : Option < String > ,
19+ bucket : Option < String > ,
2020}
2121
2222/// AWS S3 runtime config literal options for authentication
@@ -70,7 +70,7 @@ impl BlobStoreS3 {
7070 pub fn new (
7171 region : String ,
7272 auth_options : BlobStoreS3AuthOptions ,
73- container_name : Option < String > ,
73+ bucket : Option < String > ,
7474 ) -> Result < Self > {
7575 let builder = match & auth_options {
7676 BlobStoreS3AuthOptions :: RuntimeConfigValues ( config) =>
@@ -97,14 +97,14 @@ impl BlobStoreS3 {
9797 aws_sdk_s3:: Client :: new ( & sdk_config)
9898 } ) ;
9999
100- Ok ( Self { builder, client : async_once_cell:: Lazy :: from_future ( client_fut) , container_name } )
100+ Ok ( Self { builder, client : async_once_cell:: Lazy :: from_future ( client_fut) , bucket } )
101101 }
102102}
103103
104104#[ async_trait]
105105impl ContainerManager for BlobStoreS3 {
106106 async fn get ( & self , name : & str ) -> Result < Arc < dyn Container > , Error > {
107- let name = self . container_name . clone ( ) . unwrap_or_else ( || name. to_owned ( ) ) ;
107+ let name = self . bucket . clone ( ) . unwrap_or_else ( || name. to_owned ( ) ) ;
108108
109109 let store = self . builder . clone ( ) . with_bucket_name ( & name) . build ( ) . map_err ( |e| e. to_string ( ) ) ?;
110110
0 commit comments