fmt: reapplied formatting for the sse_transport module

This commit is contained in:
2026-05-07 13:47:30 -06:00
parent ee4e3bc13f
commit e69352ee2d
+3 -4
View File
@@ -1,7 +1,8 @@
use anyhow::{Context, Result, anyhow}; use anyhow::{Context, Result, anyhow};
use fmt::{Display, Formatter}; use fmt::{Display, Formatter};
use futures_util::StreamExt; use futures_util::StreamExt;
use mpsc::{Receiver, Sender, channel, OwnedPermit}; use mpsc::error::SendError;
use mpsc::{OwnedPermit, Receiver, Sender, channel};
use reqwest::Client; use reqwest::Client;
use reqwest::header::{HeaderMap, HeaderName, HeaderValue}; use reqwest::header::{HeaderMap, HeaderName, HeaderValue};
use reqwest_eventsource::{Event, EventSource}; use reqwest_eventsource::{Event, EventSource};
@@ -12,7 +13,6 @@ use std::fmt;
use std::future::Future; use std::future::Future;
use std::pin::Pin; use std::pin::Pin;
use std::task::Poll; use std::task::Poll;
use mpsc::error::SendError;
use tokio::sync::mpsc; use tokio::sync::mpsc;
use tokio::time::Duration; use tokio::time::Duration;
use url::Url; use url::Url;
@@ -234,8 +234,7 @@ impl Display for SseSinkError {
impl Error for SseSinkError {} impl Error for SseSinkError {}
type ReserveOwned<T> = type ReserveOwned<T> = Pin<Box<dyn Future<Output = Result<OwnedPermit<T>, SendError<()>>> + Send>>;
Pin<Box<dyn Future<Output = Result<OwnedPermit<T>, SendError<()>>> + Send>>;
struct PollSender<T> { struct PollSender<T> {
tx: Sender<T>, tx: Sender<T>,