mirror of
https://github.com/eolinker/apinto
synced 2025-09-26 21:01:19 +08:00
Merge pull request #227 from eolinker/feature/dubbo
fix: http_to_grpc bug
This commit is contained in:
@@ -41,7 +41,9 @@ func getDescSource(protobufID string, reflect bool) (grpc_descriptor.IDescriptor
|
|||||||
if protobufID == "" {
|
if protobufID == "" {
|
||||||
return nil, fmt.Errorf("protobuf id is empty")
|
return nil, fmt.Errorf("protobuf id is empty")
|
||||||
}
|
}
|
||||||
|
if worker == nil {
|
||||||
|
return nil, fmt.Errorf("protobuf worker is not initialized")
|
||||||
|
}
|
||||||
w, ok := worker.Get(protobufID)
|
w, ok := worker.Get(protobufID)
|
||||||
if ok {
|
if ok {
|
||||||
v, ok := w.(grpc_descriptor.IDescriptor)
|
v, ok := w.(grpc_descriptor.IDescriptor)
|
||||||
|
Reference in New Issue
Block a user