diff options
author | Vika <vika@fireburn.ru> | 2024-03-04 04:40:50 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-03-04 04:40:50 +0300 |
commit | efc10086cbb6726c3728c8edda93b8fd00436717 (patch) | |
tree | 749437e3a12181e5380a59e32b16fdbf78e87ba9 /src/database/memory.rs | |
parent | b7f0140dc05e4b33352e0ea46db4b36c6bfb2894 (diff) | |
download | kittybox-efc10086cbb6726c3728c8edda93b8fd00436717.tar.zst |
Support ?q=category queries
Warning, untested. But hopefully works!
Diffstat (limited to 'src/database/memory.rs')
-rw-r--r-- | src/database/memory.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database/memory.rs b/src/database/memory.rs index 6339e7a..564f451 100644 --- a/src/database/memory.rs +++ b/src/database/memory.rs @@ -16,6 +16,10 @@ pub struct MemoryStorage { #[async_trait] impl Storage for MemoryStorage { + async fn categories(&self, _url: &str) -> Result<Vec<String>> { + unimplemented!() + } + async fn post_exists(&self, url: &str) -> Result<bool> { return Ok(self.mapping.read().await.contains_key(url)); } |