-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed #202 #208
fixed #202 #208
Conversation
Can one of the admins verify this patch? |
Sources/NIO/ChannelInvoker.swift
Outdated
triggerUserOutboundEvent(event, promise: promise) | ||
return promise.futureResult | ||
} | ||
|
||
private func newPromise() -> EventLoopPromise<Void> { | ||
return eventLoop.newPromise() | ||
public func newPromise<T>(file: StaticString = #file, line: UInt = #line) -> EventLoopPromise<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tib can we keep this private for now ? Also I think we can just keep the old return type to remove some typing ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll make the changes.
@tib can you please amend your commit to follow our commit template for the message ? Basically what you added here as description in the issue :) Also please squash. Thanks! |
@swift-nio-bot test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
@normanmaurer I made the changes, now it should be fine. |
@tib awesome... will merge once CI finish |
@swift-nio-bot test this please |
Thanks again! |
Introduced some new parameters.
Motivation:
I just wanted 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.