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:54 UTC

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

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());