Started to implement proper event processing.
This commit is contained in:
1 parent
af11915a52
commit
238cd9f2da
7 files changed
+75
-88
No files matched your search
+5
-4
@@ -10,7 +10,6 @@ use simple_logger::SimpleLogger;
|
||||
use db::securities::list_securities;
|
||||
|
||||
use crate::db::users::{create_user, list_users};
|
||||
use crate::event_processor::process_event_files;
|
||||
use crate::migration::apply_migrations;
|
||||
use crate::util::{CustomResult, Error};
|
||||
use crate::webui::web_ui_main;
|
||||
@@ -21,6 +20,7 @@ mod migration;
|
||||
mod services;
|
||||
mod util;
|
||||
mod webui;
|
||||
mod events;
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
struct Output<T> {
|
||||
@@ -516,17 +516,18 @@ impl CommandLineUserLogic for ProCommandLineLogic {
|
||||
conn: &mut Connection,
|
||||
files: ValuesRef<PathBuf>,
|
||||
) -> CustomResult<()> {
|
||||
process_event_files(conn, files)
|
||||
// process_event_files(conn, files)
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn run_webui(
|
||||
&mut self,
|
||||
_conn: &mut Connection,
|
||||
conn: &mut Connection,
|
||||
port: u16,
|
||||
enable_template_autoreload: bool,
|
||||
) -> CustomResult<()> {
|
||||
info!("Serving web-ui on port {:?}", port);
|
||||
web_ui_main(port, enable_template_autoreload)
|
||||
web_ui_main(conn, port, enable_template_autoreload)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user