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:
parent
b0bc806a57
commit
decb70b97c
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user