mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
End transitions are now properly notified
This commit is contained in:
parent
67e8fe67ad
commit
dab00296aa
3
main.cpp
3
main.cpp
|
@ -48,11 +48,8 @@ int main(int argc, char *argv[]) {
|
||||||
auto [ec, states] =
|
auto [ec, states] =
|
||||||
fairmqTopo.ChangeState(transition, std::chrono::milliseconds(300));
|
fairmqTopo.ChangeState(transition, std::chrono::milliseconds(300));
|
||||||
if (!ec) {
|
if (!ec) {
|
||||||
// End transition does not yet wait for devices to acknowledge in v1.4.8
|
|
||||||
if (transition != TopologyTransition::End) {
|
|
||||||
LOG(info) << states.size() << " devices transitioned to "
|
LOG(info) << states.size() << " devices transitioned to "
|
||||||
<< fair::mq::sdk::AggregateState(states);
|
<< fair::mq::sdk::AggregateState(states);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
LOG(error) << ec;
|
LOG(error) << ec;
|
||||||
return ec.value();
|
return ec.value();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user