diff options
author | Felix <me@nutomic.com> | 2020-01-11 13:30:45 +0100 |
---|---|---|
committer | Felix <me@nutomic.com> | 2020-01-11 13:50:07 +0100 |
commit | 4361f48b98fc07c6abf14ecfe54953929fe38130 (patch) | |
tree | a667348a5490266ecfcdd48eb92a5a4161f1e943 /server/src/apub/community.rs | |
parent | d8c84e2541e4b8babde72261e4db8db93d649829 (diff) |
Make various functions async
Diffstat (limited to 'server/src/apub/community.rs')
-rw-r--r-- | server/src/apub/community.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs index 504e1790..fac6088e 100644 --- a/server/src/apub/community.rs +++ b/server/src/apub/community.rs @@ -84,7 +84,7 @@ pub struct CommunityQuery { community_name: String, } -pub fn get_apub_community(info: Path<CommunityQuery>) -> HttpResponse<Body> { +pub async fn get_apub_community(info: Path<CommunityQuery>) -> HttpResponse<Body> { let connection = establish_connection(); if let Ok(community) = Community::read_from_name(&connection, info.community_name.to_owned()) { @@ -96,7 +96,7 @@ pub fn get_apub_community(info: Path<CommunityQuery>) -> HttpResponse<Body> { } } -pub fn get_apub_community_followers(info: Path<CommunityQuery>) -> HttpResponse<Body> { +pub async fn get_apub_community_followers(info: Path<CommunityQuery>) -> HttpResponse<Body> { let connection = establish_connection(); if let Ok(community) = Community::read_from_name(&connection, info.community_name.to_owned()) { |