Remove unused health server methods
- Removed update_config_fetch_time() and record_error() - These methods were not integrated with the scheduler - Fixes cargo clippy dead_code warnings
This commit is contained in:
parent
e01a71be39
commit
d00e3782c3
1 changed files with 0 additions and 12 deletions
|
|
@ -33,18 +33,6 @@ impl HealthServer {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn update_config_fetch_time(&self) {
|
||||
if let Ok(mut last_fetch) = self.config_last_fetch.lock() {
|
||||
*last_fetch = Some(Timestamp::now());
|
||||
}
|
||||
}
|
||||
|
||||
pub fn record_error(&self, error: String) {
|
||||
if let Ok(mut last_error) = self.last_error.lock() {
|
||||
*last_error = Some(error);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn start(self, port: u16) {
|
||||
thread::spawn(move || {
|
||||
let addr = format!("0.0.0.0:{}", port);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue