File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ impl ChunkedEncoder {
72
72
buf : & mut [ u8 ] ,
73
73
) -> Poll < io:: Result < usize > > {
74
74
self . bytes_written = 0 ;
75
- let res = self . exec ( res, cx, buf) ;
75
+ let res = self . dispatch ( res, cx, buf) ;
76
76
log:: trace!( "ChunkedEncoder {} bytes written" , self . bytes_written) ;
77
77
res
78
78
}
79
79
80
80
/// Execute the right method for the current state.
81
- fn exec (
81
+ fn dispatch (
82
82
& mut self ,
83
83
res : & mut Response ,
84
84
cx : & mut Context < ' _ > ,
@@ -118,7 +118,7 @@ impl ChunkedEncoder {
118
118
}
119
119
120
120
self . state = state;
121
- self . exec ( res, cx, buf)
121
+ self . dispatch ( res, cx, buf)
122
122
}
123
123
124
124
/// Stream out data using chunked encoding.
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl Read for Encoder {
60
60
buf : & mut [ u8 ] ,
61
61
) -> Poll < io:: Result < usize > > {
62
62
self . bytes_written = 0 ;
63
- let res = self . exec ( cx, buf) ;
63
+ let res = self . dispatch ( cx, buf) ;
64
64
log:: trace!( "ServerEncoder {} bytes written" , self . bytes_written) ;
65
65
res
66
66
}
@@ -103,11 +103,11 @@ impl Encoder {
103
103
}
104
104
105
105
self . state = state;
106
- self . exec ( cx, buf)
106
+ self . dispatch ( cx, buf)
107
107
}
108
108
109
109
/// Execute the right method for the current state.
110
- fn exec ( & mut self , cx : & mut Context < ' _ > , buf : & mut [ u8 ] ) -> Poll < io:: Result < usize > > {
110
+ fn dispatch ( & mut self , cx : & mut Context < ' _ > , buf : & mut [ u8 ] ) -> Poll < io:: Result < usize > > {
111
111
match self . state {
112
112
State :: Start => self . set_state ( State :: ComputeHead , cx, buf) ,
113
113
State :: ComputeHead => self . compute_head ( cx, buf) ,
You can’t perform that action at this time.
0 commit comments