From d7e5f6b2a55b7b52952c02ad315f117147dbb29a Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 24 Apr 2024 01:32:02 -0700 Subject: [PATCH] fix ordering --- weed/mq/schema/schema_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/mq/schema/schema_builder.go b/weed/mq/schema/schema_builder.go index 313bbc5d3..ea7156547 100644 --- a/weed/mq/schema/schema_builder.go +++ b/weed/mq/schema/schema_builder.go @@ -64,7 +64,7 @@ func (rtb *RecordTypeBuilder) AddStringField(name string) *RecordTypeBuilder { func (rtb *RecordTypeBuilder) AddRecordField(name string, recordTypeBuilder *RecordTypeBuilder) *RecordTypeBuilder { rtb.recordType.Fields = append(rtb.recordType.Fields, &schema_pb.Field{ Name: name, - Type: &schema_pb.Type{Kind: &schema_pb.Type_RecordType{RecordType: recordTypeBuilder.recordType}}, + Type: &schema_pb.Type{Kind: &schema_pb.Type_RecordType{RecordType: recordTypeBuilder.Build()}}, }) return rtb }