From fcd8937411bb26281f8ed4e195d6df18dd44c339 Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Tue, 24 Dec 2024 19:03:32 +0800 Subject: [PATCH] fix: align the default value of reliability --- include/zenoh/api/session.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zenoh/api/session.hxx b/include/zenoh/api/session.hxx index d236969..7ab0b29 100644 --- a/include/zenoh/api/session.hxx +++ b/include/zenoh/api/session.hxx @@ -532,7 +532,7 @@ class Session : public Owned<::z_owned_session_t> { /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future /// release. /// @brief The delete operation reliability. - Reliability reliability = Reliability::Z_RELIABILITY_BEST_EFFORT; + Reliability reliability = Reliability::Z_RELIABILITY_RELIABLE; #endif /// @brief the timestamp of this message. std::optional timestamp = {}; @@ -588,7 +588,7 @@ class Session : public Owned<::z_owned_session_t> { /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future /// release. /// @brief The put operation reliability. - Reliability reliability = Reliability::Z_RELIABILITY_BEST_EFFORT; + Reliability reliability = Reliability::Z_RELIABILITY_RELIABLE; #endif #if defined(ZENOHCXX_ZENOHC) && defined(Z_FEATURE_UNSTABLE_API) /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future @@ -648,7 +648,7 @@ class Session : public Owned<::z_owned_session_t> { /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future /// release. /// @brief The publisher reliability. - Reliability reliability = Reliability::Z_RELIABILITY_BEST_EFFORT; + Reliability reliability = Reliability::Z_RELIABILITY_RELIABLE; #endif #if defined(ZENOHCXX_ZENOHC) && defined(Z_FEATURE_UNSTABLE_API) /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future