diff options
author | Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> | 2021-09-05 17:22:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 17:22:33 +0300 |
commit | ae533f1fe7675efb8b63f0a176e1fafa23dd94f9 (patch) | |
tree | 7614b39133d62132720e523ab51c6f6e032bde17 /src/run.rs | |
parent | a66c94a1f836b56897a3b5151f93aaa327efc6bd (diff) |
Dev (#63)
* Closes #62 added brightness block
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -95,6 +95,16 @@ pub async fn run(mut blocks: BlockManager) { task::spawn(b); } + // brightness task + if CONFIG.brightness.enabled { + let b = init_block( + tx.clone(), + brightness::get_brightness, + CONFIG.brightness.delay, + ); + task::spawn(b); + } + // BTC task if CONFIG.bitcoins.enabled { let b = init_block(tx.clone(), bitcoins::get_price, CONFIG.bitcoins.delay); |