mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 12:31:00 +00:00
Remove unneeded 'static
This commit is contained in:
parent
04dcc9a0c8
commit
6ee7c5c4a0
2 changed files with 3 additions and 3 deletions
|
@ -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?);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue