Skip to content

Conversation

guggero
Copy link
Contributor

@guggero guggero commented Feb 4, 2020

We add a new stream intercept method to our interceptor that can attach the LSAT to a stream as well as an unary call.

@guggero guggero requested review from wpaulino and Roasbeef February 4, 2020 15:35
@guggero guggero force-pushed the stream-interceptor branch from ba35741 to f5f9328 Compare February 6, 2020 08:15
To make the code easier to be reused for the upcoming stream
interceptor, all generic information about the interceptor's context
is extracted into a struct and the helper methods are adapted to
work with that struct.
@guggero guggero force-pushed the stream-interceptor branch from f5f9328 to 93a8189 Compare February 6, 2020 09:49
defer cancel()

// Run through the test cases.
for _, tc := range testCases {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we could refactor this further into another helper testInterceptor and invoke that here with the differences between and TestUnaryInterceptor and TestStreamInterceptor?

@guggero guggero requested a review from wpaulino February 10, 2020 09:13
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🎤

@Roasbeef Roasbeef merged commit ba6b4e7 into lightninglabs:master Feb 18, 2020
@guggero guggero deleted the stream-interceptor branch February 18, 2020 08:23
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