You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by yu...@apache.org on 2025/04/15 14:17:53 UTC

(opendal) branch bindings-go-retry-layer created (now 9e9f4446d)

This is an automated email from the ASF dual-hosted git repository.

yuchanns pushed a change to branch bindings-go-retry-layer
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at 9e9f4446d feat(bindings/c): enable RetryLayer by default

This branch includes the following new commits:

     new 9e9f4446d feat(bindings/c): enable RetryLayer by default

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(opendal) 01/01: feat(bindings/c): enable RetryLayer by default

Posted by yu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yuchanns pushed a commit to branch bindings-go-retry-layer
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 9e9f4446dc175f9a7c87654bc95d94aa759181a4
Author: Hanchin Hsieh <me...@yuchanns.xyz>
AuthorDate: Tue Apr 15 22:17:21 2025 +0800

    feat(bindings/c): enable RetryLayer by default
---
 bindings/c/src/operator.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/c/src/operator.rs b/bindings/c/src/operator.rs
index 84751fc49..48ab4a707 100644
--- a/bindings/c/src/operator.rs
+++ b/bindings/c/src/operator.rs
@@ -87,7 +87,7 @@ fn build_operator(
     schema: core::Scheme,
     map: HashMap<String, String>,
 ) -> core::Result<core::Operator> {
-    let mut op = core::Operator::via_iter(schema, map)?;
+    let mut op = core::Operator::via_iter(schema, map)?.layer(core::layers::RetryLayer::new());
     if !op.info().full_capability().blocking {
         let runtime =
             tokio::runtime::Handle::try_current().unwrap_or_else(|_| RUNTIME.handle().clone());