Created
February 22, 2019 19:47
-
-
Save jdwyah/80ea8eb3c2feb0d7d73155340a0446de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module EzConfig | |
class CallInterceptor < GRPC::ClientInterceptor | |
def cancel! | |
@call.instance_variable_get("@wrapped").instance_variable_get("@call").cancel | |
end | |
def server_streamer(request:, call:, method:, metadata:, &block) | |
@call = call | |
yield | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment