Clear stale data on startup
This is a stopgap measure until we introduce reconnection support.
This commit is contained in:
parent
1b46b7a7d6
commit
27f6ae945d
8 changed files with 59 additions and 4 deletions
|
@ -52,6 +52,8 @@ async fn main() -> Result<()> {
|
|||
init_tracing(&config);
|
||||
|
||||
let state = AppState::new(config).await?;
|
||||
state.db.clear_stale_data().await?;
|
||||
|
||||
let listener = TcpListener::bind(&format!("0.0.0.0:{}", state.config.http_port))
|
||||
.expect("failed to bind TCP listener");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue