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

feat: com aux able to receive timestamps #466

Merged

Conversation

TedRio
Copy link
Contributor

@TedRio TedRio commented Mar 25, 2024

No description provided.

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (baa9320) to head (cae49a3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #466   +/-   ##
=======================================
  Coverage   98.14%   98.14%           
=======================================
  Files          84       84           
  Lines        6747     6750    +3     
=======================================
+ Hits         6622     6625    +3     
  Misses        125      125           

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


# stay with the old return type to not making a breaking change
if remote_id is not None:
if remote_id and timestamp:
return (msg, remote_id, timestamp)
Copy link
Contributor

Choose a reason for hiding this comment

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

That's still a breaking change, or am I missing something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add an additional keyword argument receive_timestamp: bool = False so that no breaking change occurs

@sebclrsn sebclrsn self-requested a review March 27, 2024 15:04
Copy link
Contributor

@sebclrsn sebclrsn left a comment

Choose a reason for hiding this comment

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

Please add an entry to the what's new then we're good to go :)

@TedRio TedRio force-pushed the feature/com_aux_receive_msg_with_timestamp branch from 8e2008b to b34ecec Compare March 27, 2024 15:16
@@ -136,6 +136,7 @@ def receive_message(
self,
blocking: bool = True,
timeout_in_s: float = None,
receive_timestamp: bool = False,
) -> Optional[bytes]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
) -> Optional[bytes]:
) -> Optional[bytes | Tuple[bytes, int] | Tuple[bytes, int, float]]:

@@ -136,6 +136,7 @@ def receive_message(
self,
blocking: bool = True,
timeout_in_s: float = None,
receive_timestamp: bool = False,
Copy link
Contributor

Choose a reason for hiding this comment

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

Parameter docstring is missing 🙈

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ouuups, sorry I was trying to be quick so it can be merge before 0.28.0 🚑

@sebclrsn sebclrsn merged commit fb6c362 into eclipse:master Mar 28, 2024
5 checks passed
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.

None yet

3 participants