mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Prevent misuse of JobQueue header files:
* Move `JobCoro` to `JobQueue::Coro` and remove separate JobCoro.h
This commit is contained in:
committed by
Nik Bougalis
parent
afd4b45036
commit
4b261b12a4
@@ -233,7 +233,7 @@ public:
|
||||
[&](auto const& coro)
|
||||
{
|
||||
context.params = std::move (params);
|
||||
context.jobCoro = coro;
|
||||
context.coro = coro;
|
||||
RPC::doCommand (context, result);
|
||||
g.signal();
|
||||
});
|
||||
@@ -303,7 +303,7 @@ public:
|
||||
{
|
||||
context.params = rpf(Account("alice"), Account("bob"),
|
||||
RPC::Tuning::max_src_cur);
|
||||
context.jobCoro = coro;
|
||||
context.coro = coro;
|
||||
RPC::doCommand(context, result);
|
||||
g.signal();
|
||||
});
|
||||
@@ -316,7 +316,7 @@ public:
|
||||
{
|
||||
context.params = rpf(Account("alice"), Account("bob"),
|
||||
RPC::Tuning::max_src_cur + 1);
|
||||
context.jobCoro = coro;
|
||||
context.coro = coro;
|
||||
RPC::doCommand(context, result);
|
||||
g.signal();
|
||||
});
|
||||
@@ -330,7 +330,7 @@ public:
|
||||
[&](auto const& coro)
|
||||
{
|
||||
context.params = rpf(Account("alice"), Account("bob"), 0);
|
||||
context.jobCoro = coro;
|
||||
context.coro = coro;
|
||||
RPC::doCommand(context, result);
|
||||
g.signal();
|
||||
});
|
||||
@@ -343,7 +343,7 @@ public:
|
||||
[&](auto const& coro)
|
||||
{
|
||||
context.params = rpf(Account("alice"), Account("bob"), 0);
|
||||
context.jobCoro = coro;
|
||||
context.coro = coro;
|
||||
RPC::doCommand(context, result);
|
||||
g.signal();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user