Remove unneeded 'static

This commit is contained in:
asonix 2024-02-27 20:41:39 -06:00
parent 04dcc9a0c8
commit 6ee7c5c4a0
2 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ impl Backgrounded {
pub(crate) async fn proxy<S, P>(state: &State<S>, stream: P) -> Result<Self, Error>
where
S: Store,
P: Stream<Item = Result<Bytes, Error>> + 'static,
P: Stream<Item = Result<Bytes, Error>>,
{
let mut this = Self {
repo: state.repo.clone(),
@ -50,7 +50,7 @@ impl Backgrounded {
async fn do_proxy<S, P>(&mut self, store: &S, stream: P) -> Result<(), Error>
where
S: Store,
P: Stream<Item = Result<Bytes, Error>> + 'static,
P: Stream<Item = Result<Bytes, Error>>,
{
self.upload_id = Some(self.repo.create_upload().await?);

View file

@ -532,7 +532,7 @@ async fn do_download_inline<S: Store + 'static>(
#[tracing::instrument(name = "Downloading file in background", skip(stream, state))]
async fn do_download_backgrounded<S: Store + 'static>(
stream: impl Stream<Item = Result<web::Bytes, Error>> + 'static,
stream: impl Stream<Item = Result<web::Bytes, Error>>,
state: web::Data<State<S>>,
) -> Result<HttpResponse, Error> {
metrics::counter!(crate::init_metrics::FILES, "download" => "background").increment(1);