Pass config to Runner
This commit is contained in:
parent
7e8fd7a9aa
commit
3a4a4c1cfa
2 changed files with 8 additions and 4 deletions
|
|
@ -1,10 +1,14 @@
|
|||
use tracing::error;
|
||||
|
||||
pub struct Runner {}
|
||||
use crate::config::Config;
|
||||
|
||||
pub struct Runner {
|
||||
config: &'static Config,
|
||||
}
|
||||
|
||||
impl Runner {
|
||||
pub fn new() -> Self {
|
||||
Self {}
|
||||
pub fn new(config: &'static Config) -> Self {
|
||||
Self { config }
|
||||
}
|
||||
|
||||
pub async fn run(&self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue