about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-05 16:33:54 +0300
committerVika <vika@fireburn.ru>2021-05-05 16:33:54 +0300
commit3c19ea0eccc25f983a9558d7120884d16b4721c4 (patch)
tree2b4e94268ae715997cd9f2c6bc4a01143d1bfb7a /src/lib.rs
parenta5963bbdb7464709232486bfe46ccbea3366b226 (diff)
Removed the in-memory database, it's dragging me down
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6a0a1cc..2fe87f4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -82,17 +82,6 @@ pub async fn get_app_with_redis(token_endpoint: surf::Url, redis_uri: String, me
 }
 
 #[cfg(test)]
-pub async fn get_app_with_memory_for_testing(token_endpoint: surf::Url) -> (database::MemoryStorage, App<database::MemoryStorage>) {
-    let database = database::MemoryStorage::new();
-    let app = tide::with_state(ApplicationState {
-        token_endpoint, media_endpoint: None,
-        storage: database.clone(),
-        http_client: surf::Client::new(),
-    });
-
-    return (database, equip_app(app))
-}
-#[cfg(test)]
 pub async fn get_app_with_test_redis(token_endpoint: surf::Url) -> (tempdir::TempDir, std::process::Child, database::RedisStorage, App<database::RedisStorage>) {
     let (tempdir, child, uri) = crate::database::get_redis_instance().await;
     let backend = database::RedisStorage::new(uri).await.unwrap();