mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +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>
|
pub(crate) async fn proxy<S, P>(state: &State<S>, stream: P) -> Result<Self, Error>
|
||||||
where
|
where
|
||||||
S: Store,
|
S: Store,
|
||||||
P: Stream<Item = Result<Bytes, Error>> + 'static,
|
P: Stream<Item = Result<Bytes, Error>>,
|
||||||
{
|
{
|
||||||
let mut this = Self {
|
let mut this = Self {
|
||||||
repo: state.repo.clone(),
|
repo: state.repo.clone(),
|
||||||
|
@ -50,7 +50,7 @@ impl Backgrounded {
|
||||||
async fn do_proxy<S, P>(&mut self, store: &S, stream: P) -> Result<(), Error>
|
async fn do_proxy<S, P>(&mut self, store: &S, stream: P) -> Result<(), Error>
|
||||||
where
|
where
|
||||||
S: Store,
|
S: Store,
|
||||||
P: Stream<Item = Result<Bytes, Error>> + 'static,
|
P: Stream<Item = Result<Bytes, Error>>,
|
||||||
{
|
{
|
||||||
self.upload_id = Some(self.repo.create_upload().await?);
|
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))]
|
#[tracing::instrument(name = "Downloading file in background", skip(stream, state))]
|
||||||
async fn do_download_backgrounded<S: Store + 'static>(
|
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>>,
|
state: web::Data<State<S>>,
|
||||||
) -> Result<HttpResponse, Error> {
|
) -> Result<HttpResponse, Error> {
|
||||||
metrics::counter!(crate::init_metrics::FILES, "download" => "background").increment(1);
|
metrics::counter!(crate::init_metrics::FILES, "download" => "background").increment(1);
|
||||||
|
|
Loading…
Reference in a new issue