Skip to content

Fix sample to umessage#6

Open
MaximilianToe wants to merge 3 commits intomainfrom
fix_sample_to_umessage
Open

Fix sample to umessage#6
MaximilianToe wants to merge 3 commits intomainfrom
fix_sample_to_umessage

Conversation

@MaximilianToe
Copy link
Owner

No description provided.

@MaximilianToe MaximilianToe force-pushed the fix_sample_to_umessage branch from 65fbf99 to 78cef79 Compare April 24, 2025 16:19
}

} // namespace uprotocol::transport
} // namespace uprotocol::transport No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Interesting that clang-tidy did not catch this. Did you run clang-format before committing?

options.attachment = zenoh::ext::serialize(attachment);
session_.put(zenoh::KeyExpr(zenoh_key), zenoh::ext::serialize(payload),

std::vector<uint8_t> const payload_as_bytes(payload.begin(),
Copy link

Choose a reason for hiding this comment

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

For consistency:

Suggested change
std::vector<uint8_t> const payload_as_bytes(payload.begin(),
const std::vector<uint8_t> payload_as_bytes(payload.begin(),

v1::UStatus ZenohUTransport::sendPublishNotification_(
const std::string& zenoh_key, const std::string& payload,
const v1::UAttributes& attributes) {
spdlog::debug("sendPublishNotification_: {}: {}", zenoh_key, payload);
Copy link

Choose a reason for hiding this comment

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

It seems that prepending the function name to log messages is the way to go in this codebase, so I suggest sticking to this convention also for the other messages.

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