This commit is contained in:
chrislu
2024-05-03 21:27:06 -07:00
parent 7a9b115cc2
commit 30f8600a24
3 changed files with 7 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ type Schema struct {
}
func NewSchema(recordType *schema_pb.RecordType) (*Schema, error) {
var fieldMap map[string]*schema_pb.Field
fieldMap := make( map[string]*schema_pb.Field)
for _, field := range recordType.Fields {
fieldMap[field.Name] = field
}