refactor: Return row id in IStore::retrieve_one
This is a prerequisite to synchronizing security ids stored via IDGenerator (the "new" way to store ids, added when we implemented Deribit), and SecurityDB (the original way from spark days). The problem was that these 2 implementations were using separate databases. We need to unify the interfaces between these storage services to avoid breaking existing code.
This commit is contained in:
1 parent
cb187e6997
commit
bd8c97244a
28 files changed
+719
-566
No files matched your search
@@ -35,8 +35,9 @@ typedef SyntheticSecurityServiceBase::MetadataStatefulPublisher
|
||||
|
||||
struct SyntheticSecurityService::Pimpl {
|
||||
Pimpl(const MetadataStatefulPublisher &fn)
|
||||
: recorder(utils::Dispatcher::background()), synthetics(), on_security(),
|
||||
meta(), on_metadata(), metadata_publisher(fn) {}
|
||||
: recorder(nullptr, std::nullopt, &utils::Dispatcher::background()),
|
||||
synthetics(), on_security(), meta(), on_metadata(),
|
||||
metadata_publisher(fn) {}
|
||||
SecurityIDRecorder recorder;
|
||||
std::unordered_map<SecurityKey, Security> synthetics;
|
||||
utils::Event<Security> on_security;
|
||||
|
||||
Reference in new issue
Block a user