@@ -502,7 +502,8 @@ class Logic
502502 // Count how many more outbound attempts to make
503503 //
504504 auto needed (counts_.attempts_needed ());
505- if (needed == 0 ) {
505+ if (needed == 0 )
506+ {
506507 ss << " 0 attempts needed, returning none" ;
507508 JLOG (m_journal.debug ()) << ss.str ();
508509 return none;
@@ -531,7 +532,8 @@ class Logic
531532
532533 if (!h.list ().empty ())
533534 {
534- // JLOG(m_journal.debug()) << beast::leftw(18) << "Logic connect "
535+ // JLOG(m_journal.debug()) << beast::leftw(18) <<
536+ // "Logic connect "
535537 ss << " returning Logic connect " << h.list ().size () << " fixed" ;
536538 JLOG (m_journal.debug ()) << ss.str ();
537539 return h.list ();
@@ -542,7 +544,8 @@ class Logic
542544 JLOG (m_journal.debug ())
543545 << beast::leftw (18 ) << " Logic waiting on "
544546 << counts_.attempts () << " attempts" ;
545- ss << " returning none, pending outbound attempts " << counts_.attempts ();
547+ ss << " returning none, pending outbound attempts "
548+ << counts_.attempts ();
546549 JLOG (m_journal.debug ()) << ss.str ();
547550 return none;
548551 }
@@ -551,9 +554,12 @@ class Logic
551554 // Only proceed if auto connect is enabled and we
552555 // have less than the desired number of outbound slots
553556 //
554- if (!config_.autoConnect || counts_.out_active () >= counts_.out_max ()) {
555- ss << " returning none based on autoConnect || out_active >= out_max: "
556- << config_.autoConnect << ' ,' << counts_.out_active () << ' ,' << counts_.out_max ();
557+ if (!config_.autoConnect || counts_.out_active () >= counts_.out_max ())
558+ {
559+ ss << " returning none based on autoConnect || out_active >= "
560+ " out_max: "
561+ << config_.autoConnect << ' ,' << counts_.out_active () << ' ,'
562+ << counts_.out_max ();
557563 JLOG (m_journal.debug ()) << ss.str ();
558564 return none;
559565 }
@@ -568,20 +574,17 @@ class Logic
568574 &h, (&h) + 1 , livecache_.hops .rbegin (), livecache_.hops .rend ());
569575 if (!h.list ().empty ())
570576 {
571- // JLOG(m_journal.debug())
572- ss
573- << " returning Logic connect " << h.list ().size ()
574- << " live "
575- << ((h.list ().size () > 1 ) ? " endpoints" : " endpoint" );
577+ // JLOG(m_journal.debug())
578+ ss << " returning Logic connect " << h.list ().size () << " live "
579+ << ((h.list ().size () > 1 ) ? " endpoints" : " endpoint" );
576580 JLOG (m_journal.debug ()) << ss.str ();
577581 return h.list ();
578582 }
579583 else if (counts_.attempts () > 0 )
580584 {
581- // JLOG(m_journal.debug())
582- ss
583- << " returning none, Logic waiting on "
584- << counts_.attempts () << " attempts" ;
585+ // JLOG(m_journal.debug())
586+ ss << " returning none, Logic waiting on " << counts_.attempts ()
587+ << " attempts" ;
585588 JLOG (m_journal.debug ()) << ss.str ();
586589 return none;
587590 }
@@ -610,11 +613,9 @@ class Logic
610613
611614 if (!h.list ().empty ())
612615 {
613- // JLOG(m_journal.debug())
614- ss
615- << " returning Logic connect " << h.list ().size ()
616- << " boot "
617- << ((h.list ().size () > 1 ) ? " addresses" : " address" );
616+ // JLOG(m_journal.debug())
617+ ss << " returning Logic connect " << h.list ().size () << " boot "
618+ << ((h.list ().size () > 1 ) ? " addresses" : " address" );
618619 JLOG (m_journal.debug ()) << ss.str ();
619620 return h.list ();
620621 }
0 commit comments