diff options
author | danlark <[email protected]> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/messagebus/test/helper/example.cpp | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/test/helper/example.cpp')
-rw-r--r-- | library/cpp/messagebus/test/helper/example.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/messagebus/test/helper/example.cpp b/library/cpp/messagebus/test/helper/example.cpp index 7c6d704042c..0d3000b81c6 100644 --- a/library/cpp/messagebus/test/helper/example.cpp +++ b/library/cpp/messagebus/test/helper/example.cpp @@ -14,8 +14,8 @@ static void FillWithJunk(TArrayRef<char> data) { "01234567890123456789012345678901234567890123456789012345678901234567890123456789" "01234567890123456789012345678901234567890123456789012345678901234567890123456789"; - for (size_t i = 0; i < data.size(); i += junk.size()) { - memcpy(data.data() + i, junk.data(), Min(junk.size(), data.size() - i)); + for (size_t i = 0; i < data.size(); i += junk.size()) { + memcpy(data.data() + i, junk.data(), Min(junk.size(), data.size() - i)); } } @@ -79,9 +79,9 @@ void TExampleProtocol::Serialize(const TBusMessage* message, TBuffer& buffer) { // Messages have no data, we recreate them from scratch // instead of sending, so we don't need to serialize them. if (const TExampleRequest* exampleMessage = dynamic_cast<const TExampleRequest*>(message)) { - buffer.Append(exampleMessage->Data.data(), exampleMessage->Data.size()); + buffer.Append(exampleMessage->Data.data(), exampleMessage->Data.size()); } else if (const TExampleResponse* exampleReply = dynamic_cast<const TExampleResponse*>(message)) { - buffer.Append(exampleReply->Data.data(), exampleReply->Data.size()); + buffer.Append(exampleReply->Data.data(), exampleReply->Data.size()); } else { Y_FAIL("unknown message type"); } @@ -277,5 +277,5 @@ void TExampleServer::OnMessage(TOnMessageContext& mess) { status = mess.SendReplyMove(reply); } - Y_VERIFY(status == MESSAGE_OK, "failed to send reply: %s", ToString(status).data()); + Y_VERIFY(status == MESSAGE_OK, "failed to send reply: %s", ToString(status).data()); } |