Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ object = "0.40"
opendal = { version = "0.58.1", optional = true, default-features = false }
opendal-http-transport-reqwest = { version = "0.58.1", optional = true }
opendal-layer-logging = { version = "0.58.1", optional = true }
opendal-layer-retry = { version = "0.58.1", optional = true }
opendal-layer-timeout = { version = "0.58.1", optional = true }
openssl = { version = "0.10.75", optional = true }
rand = "0.8.4"
Expand Down Expand Up @@ -215,7 +214,6 @@ gcs = [
gha = [
"opendal/services-ghac",
"opendal-layer-logging",
"opendal-layer-retry",
"opendal-http-transport-reqwest",
"reqwest",
]
Expand Down
12 changes: 1 addition & 11 deletions src/cache/gha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::time::Duration;

use opendal::OperationContext;
use opendal::Operator;
use opendal::services::Ghac;
use opendal_layer_logging::LoggingLayer;
use opendal_layer_retry::RetryLayer;

use crate::VERSION;
use crate::errors::*;
Expand Down Expand Up @@ -46,14 +43,7 @@ impl GHACache {

let op = Operator::new(builder)?
.with_context(OperationContext::new().with_http_transport(new_http_transport()?))
.layer(LoggingLayer::default())
.layer(
// #2821 saw 1–21s Retry-After on GHA 429s; six retries with an 8s cap cover that range.
RetryLayer::new()
.with_jitter()
.with_max_times(6)
.with_max_delay(Duration::from_secs(8)),
);
.layer(LoggingLayer::default());
Ok(op)
}
}
Loading