diff --git a/ee/tabby-webserver/src/hub/api.rs b/ee/tabby-webserver/src/hub/api.rs index 5c480dfa989e..d244d03aeb8c 100644 --- a/ee/tabby-webserver/src/hub/api.rs +++ b/ee/tabby-webserver/src/hub/api.rs @@ -202,7 +202,7 @@ impl RepositoryAccess for SchedulerClient { fn start_snapshot(&self) -> String { log_errors("start repository snapshot", || { let cache = RepositoryCache::new()?; - Ok(cache.get_next_version()?) + cache.get_next_version() }) } diff --git a/ee/tabby-webserver/src/repositories/resolve.rs b/ee/tabby-webserver/src/repositories/resolve.rs index d25131cacc45..06b6c79c3271 100644 --- a/ee/tabby-webserver/src/repositories/resolve.rs +++ b/ee/tabby-webserver/src/repositories/resolve.rs @@ -70,7 +70,7 @@ impl RepositoryCache { pub fn clear(&self, version: String) -> Result<()> { let bucket_name = format!("repositories_{version}"); - self.cache.drop_bucket(&bucket_name)?; + self.cache.drop_bucket(bucket_name)?; Ok(()) }