From e559259686f984fdcce5669f0ab8c6dc27d76077 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 27 Oct 2021 06:27:13 +0300 Subject: Deprecated Redis backend and added a database migration tool (untested, beware) --- src/main.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e91476b..3130411 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,22 +65,8 @@ async fn main() -> Result<(), std::io::Error> { .unwrap_or_else(|| "0.0.0.0:8080".to_string()); if backend_uri.starts_with("redis") { - #[cfg(redis)] - { - let app = kittybox::get_app_with_redis( - token_endpoint, - authorization_endpoint, - backend_uri, - media_endpoint, - internal_token, - ).await; - app.listen(host).await - } - #[cfg(not(redis))] - { - println!("The Redis backend was disabled at build-time. Please recompile the package with --features=redis."); - std::process::exit(1); - } + println!("The Redis backend is deprecated."); + std::process::exit(1); } else if backend_uri.starts_with("file") { let app = kittybox::get_app_with_file( token_endpoint, -- cgit 1.4.1