]> Untitled Git - lemmy.git/blobdiff - crates/db_views/src/site_view.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / db_views / src / site_view.rs
index a1d0231a2ac5501df71d9bbb0ba7c95eb1281c39..f80666bad15c29b550cb91df48dbb39bb106f29b 100644 (file)
@@ -9,7 +9,7 @@ use lemmy_db_schema::{
 };
 
 impl SiteView {
-  pub async fn read_local(pool: &DbPool) -> Result<Self, Error> {
+  pub async fn read_local(pool: &mut DbPool<'_>) -> Result<Self, Error> {
     let conn = &mut get_conn(pool).await?;
     let (mut site, local_site, local_site_rate_limit, counts) = site::table
       .inner_join(local_site::table)