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

fix endpoint extractor panic

This commit is contained in:
Asim Aslam 2019-11-11 17:37:48 +00:00
parent fd5c29addc
commit 72522a869a
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func extractEndpoint(method reflect.Method) *registry.Endpoint {
Name: method.Name,
Request: request,
Response: response,
Metadata: make(map[string]string),
}
// set endpoint metadata for stream

View File

@ -94,6 +94,7 @@ func extractEndpoint(method reflect.Method) *registry.Endpoint {
Name: method.Name,
Request: request,
Response: response,
Metadata: make(map[string]string),
}
if stream {