diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index 26073ac86..063e0e88b 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -1229,20 +1229,6 @@ impl IndexScheduler { } } } - - let user = std::env::var("MEILI_LOUIS_PUSHOVER_USER").unwrap(); - let app = std::env::var("MEILI_LOUIS_PUSHOVER_APP").unwrap(); - - if let Err(error) = ureq::post("https://api.pushover.net/1/messages.json").send_json( - serde_json::json!({ - "token": app, - "user": user, - "title": "Issue 138 db inconsistency", - "message": "Dump and snapshot created, the index has been marked as corrupted", - }), - ) { - tracing::error!(%error, "could not send pushover") - } } #[cfg(test)] diff --git a/meilisearch/src/main.rs b/meilisearch/src/main.rs index 59e4b1095..af02f58e1 100644 --- a/meilisearch/src/main.rs +++ b/meilisearch/src/main.rs @@ -74,9 +74,6 @@ fn on_panic(info: &std::panic::PanicInfo) { async fn main() -> anyhow::Result<()> { let (opt, config_read_from) = Opt::try_build()?; - std::env::var("MEILI_LOUIS_PUSHOVER_USER").expect("MEILI_LOUIS_PUSHOVER_USER not set"); - std::env::var("MEILI_LOUIS_PUSHOVER_APP").expect("MEILI_LOUIS_PUSHOVER_APP not set"); - std::panic::set_hook(Box::new(on_panic)); anyhow::ensure!(