aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-04-08 13:21:35 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-04-08 13:21:35 +0100
commit3abe88cd128b249f2038e13dbedcbd8341830126 (patch)
treeb1832926b805fe495acbc7180b5ccdaf1dbfc5e1 /filamento/src/lib.rs
parente518e899e53c072724254bd714db914cde7db5b2 (diff)
downloadluz-3abe88cd128b249f2038e13dbedcbd8341830126.tar.gz
luz-3abe88cd128b249f2038e13dbedcbd8341830126.tar.bz2
luz-3abe88cd128b249f2038e13dbedcbd8341830126.zip
fix(filamento): use jpeg for user avatar on avatar:data node
Diffstat (limited to '')
-rw-r--r--filamento/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/filamento/src/lib.rs b/filamento/src/lib.rs
index 42646be..7946241 100644
--- a/filamento/src/lib.rs
+++ b/filamento/src/lib.rs
@@ -191,6 +191,15 @@ pub struct Client<Fs: FileStore> {
timeout: Duration,
}
+impl<Fs: FileStore> Client<Fs> {
+ pub fn with_timeout(&self, timeout: Duration) -> Self {
+ Self {
+ sender: self.sender.clone(),
+ timeout,
+ }
+ }
+}
+
impl<Fs: FileStore> Clone for Client<Fs> {
fn clone(&self) -> Self {
Self {