[Question] design tradeoffs about including ctx in method argument for generated stream handler #768
-
Hi all, I noticed that for connect-go, it generated stream handler with ctx in method argument:
For grpc-go, instead of adding a ctx in method argument, it adds a
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @DMwangnima moved this issue to a discussion. The |
Beta Was this translation helpful? Give feedback.
-
meta: is it possible to block non-maintainers from opening discussions? sucks to have this stuff crowd out other things in the homepage |
Beta Was this translation helpful? Give feedback.
Hi @DMwangnima moved this issue to a discussion. The
context.Context
is passed as the first arg for usability and consistency. It allows interceptors to set the context more easily then stubbing the method on the stream handler.