Examples: use multipart in the region example

This commit is contained in:
Alexey Rybalchenko
2023-11-15 10:11:55 +01:00
parent 7567a10513
commit 34e8a24c86
4 changed files with 95 additions and 50 deletions

View File

@@ -36,12 +36,8 @@ struct Sink : Device
Channel& dataIn = GetChannel(fChanName, 0);
while (!NewStatePending()) {
auto msg(dataIn.Transport()->CreateMessage());
dataIn.Receive(msg);
// void* ptr = msg->GetData();
// char* cptr = static_cast<char*>(ptr);
// LOG(info) << "check: " << cptr[3];
fair::mq::Parts parts;
dataIn.Receive(parts);
if (fMaxIterations > 0 && ++fNumIterations >= fMaxIterations) {
LOG(info) << "Configured max number of iterations reached. Leaving RUNNING state.";