diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 01:25:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 01:25:01 -0500 |
| commit | c759867d2478da317b3a90fabee10a4ae2cd1008 (patch) | |
| tree | 45be03eb55d0997c6012640b7f993fc942395726 | |
| parent | dc99007397c61fbc5d173324f24ed7ad193394c0 (diff) | |
maybe was wrong about thisv0.0.8
| -rw-r--r-- | findFilename.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/findFilename.go b/findFilename.go index c605dcb..1cfbe0d 100644 --- a/findFilename.go +++ b/findFilename.go @@ -3,7 +3,6 @@ package config import ( "fmt" - "go.wit.com/log" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" ) @@ -29,10 +28,10 @@ func GetFilename(pb proto.Message) (string, error) { if fieldDescriptor == nil { fieldName = protoreflect.Name("filename") fieldDescriptor = descriptor.Fields().ByName(fieldName) - if fieldDescriptor != nil { - log.Info("") - panic(".proto file must have 'Filename', not 'filename'") - } + // if fieldDescriptor == nil { + // log.Info("") + // panic(".proto file: try 'Filename', not 'filename'? or maybe nomutex if pb.Marshal() fails") + // } } // 4. Check if the field was found. If not, return false. |
