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

Cleaning up extra printed messages added during debugging #14

Conversation

gregmedd
Copy link
Contributor

While debugging the RPC timeout issue, several extra messages were added and the reply data format were changed. Changing these back so the example is cleaner and outputs the expected time value.

/* Build response attributes - the same UUID should be used to send the response
* it is also possible to send the response outside of the callback context */
auto builder = UAttributesBuilder::response(
message.attributes().source(),

Choose a reason for hiding this comment

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

source is sink and sink is source so flip these two

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

auto builder = UAttributesBuilder::response(
message.attributes().source(),
message.attributes().sink(),
UPriority::UPRIORITY_CS0,

Choose a reason for hiding this comment

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

This needs to be message.attributes.priority().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@gregmedd gregmedd force-pushed the cleanup/rpc-messages-for-timeout-issue branch from 4901523 to 244edfe Compare April 24, 2024 05:36
Copy link

@stevenhartley stevenhartley left a comment

Choose a reason for hiding this comment

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

There is a bug for priority

auto builder = UAttributesBuilder::response(
message.attributes().sink(),
message.attributes().source(),
message.attributes.priority(),

Choose a reason for hiding this comment

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

Suggested change
message.attributes.priority(),
message.attributes().priority(),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

While debugging the RPC timeout issue, several extra messages were added
and the reply data format were changed. Changing these back so the
example is cleaner and outputs the expected time value.
@gregmedd gregmedd force-pushed the cleanup/rpc-messages-for-timeout-issue branch from 244edfe to 890ad14 Compare April 24, 2024 17:04
@stevenhartley stevenhartley merged commit 3de2021 into eclipse-uprotocol:main Apr 24, 2024
3 checks passed
@gregmedd gregmedd deleted the cleanup/rpc-messages-for-timeout-issue branch April 24, 2024 21:40
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