@@ -314,38 +314,33 @@ void FDv2DataSystem::OnSynchronizerResult(
314314 bool got_shutdown = false ;
315315 bool advance = false ;
316316
317- std::visit (
318- overloaded{
319- [&](Result::ChangeSet& cs) {
320- ApplyChangeSet (std::move (cs.change_set ));
321- },
322- [&](Result::Shutdown&) { got_shutdown = true ; },
323- [&](Result::Interrupted const & iv) {
324- LD_LOG (logger_, LogLevel::kWarn )
325- << Identity ()
326- << " : synchronizer interrupted: " << iv.error .Message ();
327- status_manager_->SetState (
328- DataSourceStatus::DataSourceState::kInterrupted ,
329- iv.error .Kind (), iv.error .Message ());
330- },
331- [&](Result::TerminalError const & te) {
332- LD_LOG (logger_, LogLevel::kWarn )
333- << Identity ()
334- << " : synchronizer terminal error: " << te.error .Message ();
335- status_manager_->SetState (
336- DataSourceStatus::DataSourceState::kInterrupted ,
337- te.error .Kind (), te.error .Message ());
338- advance = true ;
339- },
340- [&](Result::Goodbye const & gb) {
341- // The synchronizer handles goodbye internally (reconnects);
342- // the orchestrator just loops on the same source.
343- LD_LOG (logger_, LogLevel::kDebug )
344- << Identity () << " : ignoring goodbye from synchronizer"
345- << (gb.reason ? " : " + *gb.reason : " " );
346- },
347- },
348- result.value );
317+ std::visit (overloaded{
318+ [&](Result::ChangeSet& cs) {
319+ ApplyChangeSet (std::move (cs.change_set ));
320+ },
321+ [&](Result::Shutdown&) { got_shutdown = true ; },
322+ [&](Result::Interrupted const & iv) {
323+ LD_LOG (logger_, LogLevel::kWarn )
324+ << Identity () << " : synchronizer interrupted: "
325+ << iv.error .Message ();
326+ status_manager_->SetState (
327+ DataSourceStatus::DataSourceState::kInterrupted ,
328+ iv.error .Kind (), iv.error .Message ());
329+ },
330+ [&](Result::TerminalError const & te) {
331+ LD_LOG (logger_, LogLevel::kWarn )
332+ << Identity () << " : synchronizer terminal error: "
333+ << te.error .Message ();
334+ status_manager_->SetState (
335+ DataSourceStatus::DataSourceState::kInterrupted ,
336+ te.error .Kind (), te.error .Message ());
337+ advance = true ;
338+ },
339+ [&](Result::Goodbye const &) {
340+ // The synchronizer handles this internally.
341+ },
342+ },
343+ result.value );
349344
350345 {
351346 std::lock_guard<std::mutex> lock (mutex_);
0 commit comments