PostingPromise: reorder post-to target to be 1st arg

This commit is contained in:
2026-05-30 21:46:19 -04:00
parent ac39a8b876
commit c2eea37a7b
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -23,9 +23,9 @@ DeviceReattacher::DeviceReattacher(
}
mrntt::MrnttNonViralPostingInvoker DeviceReattacher::reattachKnownListCReq(
[[maybe_unused]] sscl::co::ExplicitPostTarget postTarget,
[[maybe_unused]] std::exception_ptr &exceptionPtr,
[[maybe_unused]] std::function<void()> callback,
[[maybe_unused]] sscl::co::ExplicitPostTarget postTarget)
[[maybe_unused]] std::function<void()> callback)
{
/** EXPLANATION:
* DeviceManager attach APIs require the marionette thread; postTarget
@@ -92,13 +92,13 @@ void DeviceReattacher::holdReattachCReq()
reattachCReqInvoker.reset();
reattachCReqInvoker.emplace(reattachKnownListCReq(
sscl::co::ExplicitPostTarget{ioThread->getIoContext()},
reattachLifetimeExceptionPtr,
[this]()
{
sscl::SpinLock::Guard guard(deviceReattacherCanceler.s.lock);
reattachOpInFlight = false;
},
sscl::co::ExplicitPostTarget{ioThread->getIoContext()}));
}));
}
void DeviceReattacher::onTimeout(const boost::system::error_code& error)
@@ -38,9 +38,9 @@ private:
void holdReattachCReq();
mrntt::MrnttNonViralPostingInvoker reattachKnownListCReq(
sscl::co::ExplicitPostTarget postTarget,
std::exception_ptr &exceptionPtr,
std::function<void()> callback,
sscl::co::ExplicitPostTarget postTarget);
std::function<void()> callback);
DeviceManager &parent;
std::shared_ptr<sscl::ComponentThread> ioThread;