File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,19 +197,19 @@ class Connection {
197
197
///
198
198
/// - Warning: This only releases the connection and doesn't take care of cleaning handlers in the `Channel` pipeline.
199
199
func release( closing: Bool , logger: Logger ) {
200
- assert ( self . channel. eventLoop. inEventLoop )
200
+ self . channel. eventLoop. assertInEventLoop ( )
201
201
self . provider. release ( connection: self , closing: closing, logger: logger)
202
202
}
203
203
204
204
/// Called when channel exceeds idle time in pool.
205
205
func timeout( logger: Logger ) {
206
- assert ( self . channel. eventLoop. inEventLoop )
206
+ self . channel. eventLoop. assertInEventLoop ( )
207
207
self . provider. timeout ( connection: self , logger: logger)
208
208
}
209
209
210
210
/// Called when channel goes inactive while in the pool.
211
211
func remoteClosed( logger: Logger ) {
212
- assert ( self . channel. eventLoop. inEventLoop )
212
+ self . channel. eventLoop. assertInEventLoop ( )
213
213
self . provider. remoteClosed ( connection: self , logger: logger)
214
214
}
215
215
You can’t perform that action at this time.
0 commit comments