1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Response type for Stream is an interface

This commit is contained in:
Asim 2016-04-26 15:52:08 +01:00
parent b0bc806a57
commit decb70b97c

View File

@ -82,7 +82,9 @@ func extractEndpoint(method reflect.Method) *registry.Endpoint {
return nil return nil
} }
if rspType.Kind() == reflect.Func { // are we dealing with a stream?
switch rspType.Kind() {
case reflect.Func, reflect.Interface:
stream = true stream = true
} }