Skip to content

Conversation

tib
Copy link
Contributor

@tib tib commented Mar 21, 2018

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.

@swift-nio-bot
Copy link

Can one of the admins verify this patch?

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> {
Copy link
Member

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 ;)

Copy link
Contributor Author

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.

@normanmaurer
Copy link
Member

@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!

@normanmaurer
Copy link
Member

@swift-nio-bot test this please

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

…romise (#202)

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.
@tib
Copy link
Contributor Author

tib commented Mar 21, 2018

@normanmaurer I made the changes, now it should be fine.

@normanmaurer
Copy link
Member

@tib awesome... will merge once CI finish

@normanmaurer
Copy link
Member

@swift-nio-bot test this please

@normanmaurer normanmaurer merged commit 9a6f34f into apple:master Mar 21, 2018
@normanmaurer
Copy link
Member

Thanks again!

@normanmaurer normanmaurer added this to the 1.3.0 milestone Mar 21, 2018
@normanmaurer normanmaurer added the 🔨 semver/patch No public API change. label Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChannelInvoker.newPromise should pass file and line to eventLoop.newPromise
4 participants