-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(market-data-feeder): Move out definitions out of binary pack…
…age into library one.
- Loading branch information
1 parent
a27e897
commit ccafab8
Showing
6 changed files
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#![forbid(unsafe_code)] | ||
#![warn(clippy::pedantic)] | ||
#![allow(clippy::missing_errors_doc)] | ||
|
||
use chain_ops::run_app; | ||
|
||
use market_data_feeder::task::{ApplicationDefinedContext, Id}; | ||
|
||
run_app!( | ||
task_creation_context: { | ||
ApplicationDefinedContext::new() | ||
}, | ||
startup_tasks: [] as [Id; 0], | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod oracle; | ||
pub mod provider; | ||
pub mod providers; | ||
pub mod task; |
29 changes: 11 additions & 18 deletions
29
services/market-data-feeder/src/main.rs → ...es/market-data-feeder/src/task/context.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters