Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ability to set the priority of sending messages has been implemented #277

Closed
wants to merge 0 commits into from

Conversation

bakul14
Copy link

@bakul14 bakul14 commented Jul 3, 2024

The priority of sending messages is set by the constructor argument when allocating the appropriate publishers, clients, servers. Thus, content will be sent with a predefined priority, which cannot be changed at runtime.

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 31.56%. Comparing base (e424e45) to head (168dddb).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #277   +/-   ##
=======================================
  Coverage   31.56%   31.56%           
=======================================
  Files           8        8           
  Lines        5028     5028           
  Branches      542      542           
=======================================
  Hits         1587     1587           
  Misses       3366     3366           
  Partials       75       75           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution - please use function overloading instead of default argument values.

src/Node.hpp Outdated
@@ -83,24 +83,24 @@ class Node


template <typename T>
Publisher<T> create_publisher(CanardMicrosecond const tx_timeout_usec);
Publisher<T> create_publisher(CanardMicrosecond const tx_timeout_usec, CanardPriority const tx_priority = CanardPriorityNominal);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bakul14 ☕ 👋 thank you very much for your contribution 🚀 . I do not prefer using default argument values, I'd rather do function overloading with another function exposing an additional parameter tx_priority. Can you please amend your PR accordingly?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @bakul14 ☕ 👋 - just checking in if you are still around - if not I'll have to close this PR unmerged.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I remember about this PR. I think I'll do it next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants