File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,9 @@ impl AwsService {
114114 . or_default_provider ( )
115115 . or_else ( Region :: new ( "us-east-1" ) ) ,
116116 ) ;
117- match endpoint_url {
118- Some ( url) => config_provider = config_provider. endpoint_url ( url) ,
119- None => { }
120- }
117+ if let Some ( url) = endpoint_url {
118+ config_provider = config_provider. endpoint_url ( url)
119+ } ;
121120 config_provider. load ( ) . await
122121 } ) ;
123122
Original file line number Diff line number Diff line change @@ -82,11 +82,13 @@ pub enum ServerConfig {
8282 /// If `None`, the default region is used.
8383 /// The `default` region is based on the AWS SDK
8484 /// - <https://docs.aws.amazon.com/sdk-for-rust/latest/dg/region.html>
85+ ///
8586 /// following, in order:
8687 /// 1. `AWS_REGION` environment variable,
8788 /// 2. `AWS_CONFIG_FILE` environment variable and the `region` in that file
8889 /// 3. `AWS_PROFILE` variable and the region for that file in the config file
8990 /// 4. The instance profile if running in an AWS compute environment
91+ ///
9092 /// Failing all of those, we will default to `us-east-1`.
9193 region : Option < String > ,
9294 /// Bucket in which to store the task data.
You can’t perform that action at this time.
0 commit comments