Create energy actor
This commit is contained in:
7
central_backend/src/constants.rs
Normal file
7
central_backend/src/constants.rs
Normal file
@ -0,0 +1,7 @@
|
||||
use std::time::Duration;
|
||||
|
||||
/// Energy refresh operations interval
|
||||
pub const ENERGY_REFRESH_INTERVAL: Duration = Duration::from_secs(30);
|
||||
|
||||
/// Fallback value to use if production cannot be fetched
|
||||
pub const FALLBACK_PRODUCTION_VALUE: i32 = 5000;
|
Reference in New Issue
Block a user