Skip to content

Commit

Permalink
fix: align the default value of reliability (#351)
Browse files Browse the repository at this point in the history
* fix: align the default value of reliability

* chore: address the comment

* style: clang-format

* fix: compile failure
  • Loading branch information
YuanYuYuan authored Jan 7, 2025
1 parent 8dce692 commit 53d062c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/zenoh/api/session.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = z_reliability_default();
#endif
/// @brief the timestamp of this message.
std::optional<Timestamp> timestamp = {};
Expand Down Expand Up @@ -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 = z_reliability_default();
#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
Expand Down Expand Up @@ -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 = z_reliability_default();
#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
Expand Down

0 comments on commit 53d062c

Please sign in to comment.