File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import NIOHTTP1
26
26
///
27
27
/// 1. **The request is scheduled to be run.**
28
28
/// In this state the HTTP client tries to acquire a connection for the request, and the request
29
- /// may need to wait for a connection)
29
+ /// may need to wait for a connection
30
30
/// 2. **The request is executing.**
31
31
/// In this state the request was written to a NIO channel. A NIO channel handler (abstracted
32
32
/// by the `HTTPRequestExecutor` protocol) writes the request's bytes onto the wire and
@@ -130,7 +130,7 @@ import NIOHTTP1
130
130
/// Passing along the requests reference helps the executor and scheduler verify its internal
131
131
/// state.
132
132
133
- /// A handle to the request queuer .
133
+ /// A handle to the request scheduler .
134
134
///
135
135
/// Use this handle to cancel the request, while it is waiting for a free connection, to execute the request.
136
136
/// This protocol is only intended to be implemented by the `HTTPConnectionPool`.
@@ -247,4 +247,3 @@ protocol HTTPExecutingRequest: AnyObject {
247
247
248
248
func fail( _ error: Error )
249
249
}
250
-
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ final class RequestBag<Delegate: HTTPClientResponseDelegate>: HTTPScheduledReque
251
251
case . initialized:
252
252
preconditionFailure ( " Request stream must be started before it can be paused " )
253
253
case . producing:
254
- preconditionFailure ( " Expected that pause is only called when if we were paused before " )
254
+ preconditionFailure ( " Expected that resume is only called when if we were paused before " )
255
255
case . paused( let promises) :
256
256
self . _state = . executing( executor, . producing, responseState)
257
257
return promises
You can’t perform that action at this time.
0 commit comments