Closed bwplotka closed 3 years ago
Looks like this has been resolved by #385 and can be closed?
Sounds good to me!
I haven't seen this fix 😱 Amazing, thanks! Super cool, this brings us almost ready for v2
release (: Thank you so much!
grpc's ChainUnaryInterceptor
returns a ServerOption, not an interceptor, so it can't be used to build chains that are also interceptors (to be included in other chains).
We use this behavior in spicedb to associate default interceptors with service implementations:
which are then included in bigger interceptor chains for actually serving, based on startup options, etc.
It seems pretty handy to have func(...Interceptor) Interceptor
in this library - any chance we could bring it back for v2? Or do you think it would be better to see if grpc-go could have an option to change the return type of the Chain
fns?
(We could refactor a bit to avoid this need, but these chain helpers seemed generally useful).
Hi Evan. I think we're trying to remove as much API as possible at this point, since we're cutting a new major. Do you think you could refactor your code or re-implement the old code in your code base? If we get more requests for this we can always add it later.
See: https://godoc.org/google.golang.org/grpc#ChainUnaryInterceptor
Blocked on upgrade PR: https://github.com/grpc-ecosystem/go-grpc-middleware/pull/321
Pulled from https://github.com/grpc-ecosystem/go-grpc-middleware/issues/275 for visibility.
Blocker for v2.