SPARK-2248 Update.h should have add/remove/change instead of just add/remove

This commit is contained in:
Eric Harding committed 2019-04-09 09:59:00 -04:00
1 parent b664c42cae
commit 9fd7db55ca
4 files changed
+86 -28

No files matched your search

+15 -6
View File
@@ -86,14 +86,23 @@ MBOServiceServer::MBOServiceServer(
md::MDClient& c
) :
MBOServiceBase(ctx),
_me(new MBOServiceImpl(ctx,d,c))
_me(new MBOServiceImpl(ctx,d,c,make_piq_publisher()))
{
// subscribe to mdclient
// make publishers
// subscribe to orders
// _me = utils::make_unique<MBOServiceImpl>();
// subscribe to mdclient ✔
// make publishers ✔
// subscribe to orders => stash active orders dict
_me->orders_sub =
_me->orders.subscribe_orders().subscribe([=](const auto& update) {
const auto& added = update.added();
const auto& removed = update.removed();
// api thread
_me->dispatcher.post([this,added,removed]() {
// dispatcher thread
// handle add/remove/change
});
});
}
MBOServiceServer::~MBOServiceServer() { }