about summary refs log tree commit diff
path: root/src/database/file
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/file')
-rw-r--r--src/database/file/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/file/mod.rs b/src/database/file/mod.rs
index db9bb22..b9f27b2 100644
--- a/src/database/file/mod.rs
+++ b/src/database/file/mod.rs
@@ -603,6 +603,7 @@ impl Storage for FileStorage {
                     // Broken links return None, and Stream::filter_map skips Nones.
                     .try_filter_map(|post: Option<serde_json::Value>| async move { Ok(post) })
                     .and_then(|mut post| async move {
+                        // XXX: N+1 problem, potential sanitization issues
                         hydrate_author(&mut post, user, self).await;
                         Ok(post)
                     })
@@ -758,6 +759,6 @@ impl Storage for FileStorage {
 
     async fn all_posts<'this>(&'this self, user: &url::Url) -> Result<impl futures::Stream<Item = serde_json::Value> + Send + 'this> {
         todo!();
-        Ok(futures::stream::empty()) // for type inference
+        #[allow(unreachable_code)] Ok(futures::stream::empty()) // for type inference
     }
 }