diff options
author | Vika <vika@fireburn.ru> | 2021-10-27 06:27:13 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-10-27 06:27:13 +0300 |
commit | e559259686f984fdcce5669f0ab8c6dc27d76077 (patch) | |
tree | 610543a0d741af11ccf9ebcbcaf5055973ddff72 /src/main.rs | |
parent | 5545edcca7d8d67ef156c924351fd9cb912c160b (diff) | |
download | kittybox-e559259686f984fdcce5669f0ab8c6dc27d76077.tar.zst |
Deprecated Redis backend and added a database migration tool (untested, beware)
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 18 |
1 files changed, 2 insertions, 16 deletions
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, |