Skip to content

Conversation

@dadjeibaah
Copy link
Contributor

Signed-off-by: Dennis Adjei-Baah dennis@buoyant.io

Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

⭐ Nice and easy 💼

if (peerCerts.isEmpty) {
service(req).rescue(wrapServiceEx)
} else {
Contexts.local.let(Transport.peerCertCtx, peerCerts.head) {
Copy link
Member

Choose a reason for hiding this comment

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

TIOLI: I tend to prefer the safe headOption instead of the unsafe head:

ie peerCerts.headOption match { ...

Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
@dadjeibaah dadjeibaah merged commit 753fc17 into master Jun 19, 2019
@dadjeibaah dadjeibaah deleted the dad/finagle-19.5.1-upgrade branch June 19, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants