Merge pull request #227 from eolinker/feature/dubbo

fix: http_to_grpc bug
This commit is contained in:
Dot.L
2025-08-29 18:24:48 +08:00
committed by GitHub

View File

@@ -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)