SPARK-1668 reporting stream is done
This commit is contained in:
1 parent
efac4a6077
commit
b8883fc8ae
4 files changed
+75
-2
No files matched your search
@@ -126,9 +126,11 @@ void AdminServiceServer::_update_and_publish(bool is_insert){
|
||||
_store->update(_table_name, _unique_key, ser_state);
|
||||
_publisher.add_or_update(_state);
|
||||
_publisher.flush();
|
||||
_publish_md_entitlements();
|
||||
}
|
||||
else
|
||||
LOG(Gen, Error, "Could not serialize admin data, saving failed");
|
||||
|
||||
}
|
||||
void AdminServiceServer::get_order_summary(const bts::api::VoidMessage&,
|
||||
const api::Response<::bts::api::admin::OrdersSummary>& reply){
|
||||
@@ -206,5 +208,10 @@ void AdminServiceServer::_cancel_orders(const vector<string>& accounts,
|
||||
}
|
||||
}
|
||||
void AdminServiceServer::_publish_md_entitlements(){
|
||||
std::vector<MDEntitlementReportUnit> entitlements;
|
||||
AdminServiceUtils::get_md_entitlement_report(_state,entitlements);
|
||||
for (const auto& e : entitlements)
|
||||
_md_entit_publisher.add_or_update(e);
|
||||
_md_entit_publisher.flush();
|
||||
}
|
||||
}}
|
||||
Reference in new issue
Block a user