fix endpoint extractor panic
This commit is contained in:
parent
fd5c29addc
commit
72522a869a
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user