From c759867d2478da317b3a90fabee10a4ae2cd1008 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 01:25:01 -0500 Subject: maybe was wrong about this --- findFilename.go | 9 ++++----- 1 file 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. -- cgit v1.2.3