mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 12:31:00 +00:00
Remove more unneeded 'static
This commit is contained in:
parent
6ee7c5c4a0
commit
25ef3861f1
2 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ pub(crate) struct Session {
|
|||
|
||||
async fn process_ingest<S>(
|
||||
state: &State<S>,
|
||||
stream: impl Stream<Item = Result<Bytes, Error>> + 'static,
|
||||
stream: impl Stream<Item = Result<Bytes, Error>>,
|
||||
) -> Result<
|
||||
(
|
||||
InternalFormat,
|
||||
|
@ -108,7 +108,7 @@ where
|
|||
|
||||
async fn dummy_ingest<S>(
|
||||
state: &State<S>,
|
||||
stream: impl Stream<Item = Result<Bytes, Error>> + 'static,
|
||||
stream: impl Stream<Item = Result<Bytes, Error>>,
|
||||
) -> Result<
|
||||
(
|
||||
InternalFormat,
|
||||
|
@ -150,7 +150,7 @@ where
|
|||
#[tracing::instrument(skip(state, stream))]
|
||||
pub(crate) async fn ingest<S>(
|
||||
state: &State<S>,
|
||||
stream: impl Stream<Item = Result<Bytes, Error>> + 'static,
|
||||
stream: impl Stream<Item = Result<Bytes, Error>>,
|
||||
declared_alias: Option<Alias>,
|
||||
) -> Result<Session, Error>
|
||||
where
|
||||
|
|
|
@ -460,7 +460,7 @@ struct UrlQuery {
|
|||
}
|
||||
|
||||
async fn ingest_inline<S: Store + 'static>(
|
||||
stream: impl Stream<Item = Result<web::Bytes, Error>> + 'static,
|
||||
stream: impl Stream<Item = Result<web::Bytes, Error>>,
|
||||
state: &State<S>,
|
||||
) -> Result<(Alias, DeleteToken, Details), Error> {
|
||||
let session = ingest::ingest(state, stream, None).await?;
|
||||
|
@ -513,7 +513,7 @@ async fn download_stream<S>(
|
|||
|
||||
#[tracing::instrument(name = "Downloading file inline", skip(stream, state))]
|
||||
async fn do_download_inline<S: Store + 'static>(
|
||||
stream: impl Stream<Item = Result<web::Bytes, Error>> + 'static,
|
||||
stream: impl Stream<Item = Result<web::Bytes, Error>>,
|
||||
state: &State<S>,
|
||||
) -> Result<HttpResponse, Error> {
|
||||
metrics::counter!(crate::init_metrics::FILES, "download" => "inline").increment(1);
|
||||
|
|
Loading…
Reference in a new issue