Skip to content

Commit 3577885

Browse files
committed
Pass Journal by value and make it last arg
1 parent 6444422 commit 3577885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ripple/overlay/Slot.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class Slot final
112112
* @param journal Journal for logging
113113
* @param handler Squelch/Unsquelch implementation
114114
*/
115-
Slot(beast::Journal&& journal, SquelchHandler const& handler)
115+
Slot(SquelchHandler const& handler, beast::Journal journal)
116116
: reachedThreshold_(0)
117117
, lastSelected_(clock_type::now())
118118
, state_(SlotState::Counting)
@@ -686,7 +686,7 @@ Slots<clock_type>::updateSlotAndSquelch(
686686
JLOG(journal_.debug())
687687
<< "updateSlotAndSquelch: new slot " << Slice(validator);
688688
auto [it, _] = slots_.emplace(std::make_pair(
689-
validator, Slot<clock_type>(app_.journal("Slot"), handler_)));
689+
validator, Slot<clock_type>(handler_, app_.journal("Slot"))));
690690
it->second.update(validator, id, type);
691691
}
692692
else

0 commit comments

Comments
 (0)