Skip to content

Commit

Permalink
feature: export trades with full states (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc authored Mar 2, 2021
1 parent 202604c commit 3dd639f
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 50 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ path = "src/bin/matchengine.rs"

[features]
windows_build = ["rdkafka/dynamic_linking"]
verbose_trade = []
default = []
#default = ["windows_build"]
#default = ["windows_build", "verbose_trade"]
2 changes: 1 addition & 1 deletion src/matchengine/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct PersistorGen<'c> {
impl<'c> PersistorGen<'c> {
fn persist_for_market(self, market_tag: (String, String)) -> Box<dyn market::PersistExector + 'c> {
match self.policy {
PersistPolicy::Dummy => Box::new(market::DummyPersistor(false)),
PersistPolicy::Dummy => Box::new(market::DummyPersistor::new(false)),
PersistPolicy::ToDB => Box::new(market::persistor_for_db(&mut self.base.history_writer)),
PersistPolicy::ToMessage => Box::new(market::persistor_for_message(
self.base.message_manager.as_mut().unwrap(),
Expand Down
Loading

0 comments on commit 3dd639f

Please sign in to comment.