diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-21 23:38:28 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-21 23:38:28 +0100 |
commit | b127ee51925f59b306b032dbacc11464ed175a60 (patch) | |
tree | b7097c20a560019f90394de9e21da4c498aadabb /base/src/federation.rs | |
parent | a8fe841aaefe904121d936e608572a1422191167 (diff) | |
download | jellything-b127ee51925f59b306b032dbacc11464ed175a60.tar jellything-b127ee51925f59b306b032dbacc11464ed175a60.tar.bz2 jellything-b127ee51925f59b306b032dbacc11464ed175a60.tar.zst |
refactor tmdb api, cast&crew, node ext
Diffstat (limited to 'base/src/federation.rs')
-rw-r--r-- | base/src/federation.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/src/federation.rs b/base/src/federation.rs index 0041e26..542c535 100644 --- a/base/src/federation.rs +++ b/base/src/federation.rs @@ -37,6 +37,7 @@ impl Federation { .get(host) .ok_or(anyhow!("unknown instance"))?) } + pub async fn get_session(&self, host: &String) -> anyhow::Result<Arc<Session>> { let mut w = self.sessions.write().await; if let Some(s) = w.get(host) { |