Added server method to publish precomputed theos, feed it into a calculator, and publish the calculator as an event
This commit is contained in:
1 parent
64a253b581
commit
4d85106fbf
10 files changed
+323
-1
No files matched your search
@@ -469,6 +469,16 @@ void OrderServiceServer::send_rfq(
|
||||
r(response);
|
||||
}
|
||||
|
||||
void OrderServiceServer::set_precomputed_theos(
|
||||
const bts::api::orderman::PrecomputedTheos &precomp_theos,
|
||||
const api::Response<::bts::api::ResultMessage> &reply) {
|
||||
LOG(Gen, Info, "OrderServiceServer::set_precomputed_theos count: {}",
|
||||
precomp_theos.theos().size());
|
||||
me->service_bridge->set_precomputed_theos(precomp_theos);
|
||||
bts::api::ResultMessage res = {};
|
||||
reply(res);
|
||||
}
|
||||
|
||||
void OrderServiceServer::on_order_op_result(
|
||||
OrderOpResultEvent const &op_result) {
|
||||
auto it = me->in_flight_order_ops.find(op_result.req_id);
|
||||
|
||||
Reference in new issue
Block a user