refactor: rename crator folder

This commit is contained in:
dboures 2023-03-14 16:57:42 -05:00
parent 8ccfcbde04
commit 74a042df9d
No known key found for this signature in database
GPG Key ID: AB3790129D478852
10 changed files with 6 additions and 6 deletions

View File

@ -8,8 +8,8 @@ name = "openbook_candles"
path = "src/lib.rs" path = "src/lib.rs"
[[bin]] [[bin]]
name = "creator" name = "worker"
path = "src/candle_creation/main.rs" path = "src/worker/main.rs"
[[bin]] [[bin]]
name = "server" name = "server"

View File

@ -1,4 +1,4 @@
pub mod candle_creation; pub mod worker;
pub mod database; pub mod database;
pub mod structs; pub mod structs;
pub mod utils; pub mod utils;

View File

@ -7,7 +7,7 @@ use strum::IntoEnumIterator;
use tokio::{sync::mpsc::Sender, time::sleep}; use tokio::{sync::mpsc::Sender, time::sleep};
use crate::{ use crate::{
candle_creation::candle_batching::minute_candles::batch_1m_candles, worker::candle_batching::minute_candles::batch_1m_candles,
structs::{candle::Candle, markets::MarketInfo, resolution::Resolution}, structs::{candle::Candle, markets::MarketInfo, resolution::Resolution},
}; };

View File

@ -1,6 +1,6 @@
use dotenv; use dotenv;
use openbook_candles::candle_creation::candle_batching::batch_candles; use openbook_candles::worker::candle_batching::batch_candles;
use openbook_candles::candle_creation::trade_fetching::scrape::scrape; use openbook_candles::worker::trade_fetching::scrape::scrape;
use openbook_candles::database::{ use openbook_candles::database::{
initialize::{connect_to_database, setup_database}, initialize::{connect_to_database, setup_database},
insert::{persist_candles, persist_fill_events}, insert::{persist_candles, persist_fill_events},