GitHub user dr3s edited a discussion: Operator concurrency
I'm not sure if I just don't understand the API but I'm finding I can only use
the opendal backblaze operator for one upload at a time.
This what I'm putting into my app state:
```rust
let builder = B2::default()
.root("/")
.application_key_id(id.as_ref())
.application_key(key.as_ref())
.bucket("mybucket")
.bucket_id("adafdasdassdfas");
let op: Operator = Operator::new(builder)?.finish();
```
The operator gets cloned on every request but if I have two concurrent
requests, they block on writing. What am I missing?
`operator.write(file_path, bytes.clone()).await?;`
GitHub link: https://github.com/apache/opendal/discussions/5401
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]