GitHub user Xuanwo edited a comment on the discussion: S3 service root and 
region not effective

Please don't call `builder.build?` directly, it will take and consume `builder` 
itself. Instead:

```rust
let mut builder = S3::default();
builder
    .endpoint(endpoint)
    .root(&format!("storage-{}", storage_server_id))
    .bucket(bucket)
    .region(region)
    .access_key_id(access_key_id)
    .secret_access_key(secret_access_key)
    .allow_anonymous();
Ok(Operator::new(builder)?.finish())
```

GitHub link: 
https://github.com/apache/incubator-opendal/discussions/3006#discussioncomment-6902460

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to