SPARK-2248 Update.h should have add/remove/change instead of just add/remove
This commit is contained in:
1 parent
b664c42cae
commit
9fd7db55ca
4 files changed
+86
-28
No files matched your search
@@ -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() { }
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user