File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -179,15 +179,15 @@ impl Coordinator for FileCoordinator {
179179 Ok ( ( ) )
180180 }
181181
182- async fn lookup < ' a > (
182+ async fn lookup (
183183 & self ,
184184 namespace : & TrackNamespace ,
185- ) -> CoordinatorResult < ( NamespaceOrigin , Option < & ' a Client > ) > {
185+ ) -> CoordinatorResult < ( NamespaceOrigin , Option < Client > ) > {
186186 let namespace = namespace. clone ( ) ;
187187 let file_path = self . file_path . clone ( ) ;
188188
189189 let result = tokio:: task:: spawn_blocking (
190- move || -> Result < Option < ( NamespaceOrigin , Option < & Client > ) > > {
190+ move || -> Result < Option < ( NamespaceOrigin , Option < Client > ) > > {
191191 let file = OpenOptions :: new ( )
192192 . read ( true )
193193 . write ( true )
Original file line number Diff line number Diff line change @@ -171,10 +171,10 @@ pub trait Coordinator: Send + Sync {
171171 ///
172172 /// - `Ok(NamespaceOrigin, Option<quic::Client>)` - Namespace origin and optional client if available
173173 /// - `Err` - Namespace not found anywhere
174- async fn lookup < ' a > (
174+ async fn lookup (
175175 & self ,
176176 namespace : & TrackNamespace ,
177- ) -> CoordinatorResult < ( NamespaceOrigin , Option < & ' a quic:: Client > ) > ;
177+ ) -> CoordinatorResult < ( NamespaceOrigin , Option < quic:: Client > ) > ;
178178
179179 /// Graceful shutdown of the coordinator.
180180 ///
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl RemoteManager {
5656 let url = origin. url ( ) ;
5757
5858 // Get or create a connection to the remote relay
59- let remote = self . get_or_connect ( & url, client) . await ?;
59+ let remote = self . get_or_connect ( & url, client. as_ref ( ) ) . await ?;
6060
6161 // Subscribe to the track on the remote
6262 remote. subscribe ( namespace, track_name) . await
You can’t perform that action at this time.
0 commit comments