File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,16 @@ where
82
82
}
83
83
84
84
pub trait ResolutionStreamExt < E , T > : TryStream < Ok = Update < E > , Error = T > {
85
- fn next_update ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Result < Update < E > , T > > {
85
+ fn poll_next_update ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Result < Update < E > , T > > {
86
86
self . try_poll_next ( cx)
87
87
. map ( |result| result. expect ( "resolution stream never ends" ) )
88
88
}
89
89
90
- fn next_update_pin ( & mut self , cx : & mut Context < ' _ > ) -> Poll < Result < Update < E > , T > >
90
+ fn poll_next_update_unpin ( & mut self , cx : & mut Context < ' _ > ) -> Poll < Result < Update < E > , T > >
91
91
where
92
92
Self : Unpin ,
93
93
{
94
- Pin :: new ( self ) . next_update ( cx)
94
+ Pin :: new ( self ) . poll_next_update ( cx)
95
95
}
96
96
}
97
97
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ where
109
109
return Poll :: Ready ( Some ( Ok ( change) ) ) ;
110
110
}
111
111
112
- match ready ! ( this. resolution. next_update ( cx) ) ? {
112
+ match ready ! ( this. resolution. poll_next_update ( cx) ) ? {
113
113
Update :: Add ( endpoints) => {
114
114
for ( addr, endpoint) in endpoints. into_iter ( ) {
115
115
this. active . insert ( addr) ;
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ where
116
116
117
117
fn poll_next ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Option < Self :: Item > > {
118
118
let this = self . project ( ) ;
119
- let update = match ready ! ( this. resolution. next_update ( cx) ) ? {
119
+ let update = match ready ! ( this. resolution. poll_next_update ( cx) ) ? {
120
120
resolve:: Update :: Add ( eps) => {
121
121
let mut update = Vec :: new ( ) ;
122
122
for ( a, ep) in eps. into_iter ( ) {
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ where
200
200
//
201
201
// Attempt recovery/backoff if the resolution fails.
202
202
203
- match ready ! ( resolution. next_update_pin ( cx) ) {
203
+ match ready ! ( resolution. poll_next_update_unpin ( cx) ) {
204
204
Ok ( update) => {
205
205
this. update_active ( & update) ;
206
206
return Poll :: Ready ( Some ( Ok ( update) ) ) ;
@@ -301,7 +301,7 @@ where
301
301
} => match ready ! ( resolution
302
302
. as_mut( )
303
303
. expect( "illegal state" )
304
- . next_update_pin ( cx) )
304
+ . poll_next_update_unpin ( cx) )
305
305
{
306
306
Err ( e) => State :: Recover {
307
307
error : Some ( e. into ( ) ) ,
You can’t perform that action at this time.
0 commit comments