Skip to content

Commit

Permalink
ChannelInvoker.newPromise should pass file and line to eventLoop.newP…
Browse files Browse the repository at this point in the history
…romise (#202) (#208)

Motivation:

Introduced some new parameters to fix #202

Modifications:

Created new parameters for the file and line newPromise method inside ChannelOutboundInvoker.

Result:

File and line numbers are now passed to the eventLoop object, all unit tests have been passed.
  • Loading branch information
tib authored and normanmaurer committed Mar 21, 2018
1 parent 8bf013d commit 9a6f34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/NIO/ChannelInvoker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ extension ChannelOutboundInvoker {
return promise.futureResult
}

private func newPromise() -> EventLoopPromise<Void> {
return eventLoop.newPromise()
private func newPromise(file: StaticString = #file, line: UInt = #line) -> EventLoopPromise<Void> {
return eventLoop.newPromise(file: file, line: line)
}
}

Expand Down

0 comments on commit 9a6f34f

Please sign in to comment.