-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
The function receives a request parameter and clones it each time. It should create a new request in each attempt using the spec. So code like this:
let inner = async move |_| {
Self::connect_attempt(client.clone(), spec.clone(), &request, &options).await
};
gax::retry_loop_internal::retry_loop(inner, sleep, true, throttler, retry, backoff).awaitBecomes:
let inner = async move |_| {
let request = BidiReadObjectRequest {
spec: (*spec.lock().expect("never poisoned")).clone(),
ranges: ranges.clone(),
};
Self::connect_attempt(client.clone(), spec.clone(), &options).await
};
gax::retry_loop_internal::retry_loop(inner, sleep, true, throttler, retry, backoff).awaitMetadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.