diff options
| author | chrislu <chris.lu@gmail.com> | 2024-05-03 21:27:06 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-05-03 21:27:06 -0700 |
| commit | 30f8600a24853e8d60b288a6bba866008e041784 (patch) | |
| tree | c80979732d5f4bb9f9ed90cdcad988e0c888d375 /weed/mq/schema/schema.go | |
| parent | 7a9b115cc2365a1d06d0fc049b7656064e353006 (diff) | |
| download | seaweedfs-30f8600a24853e8d60b288a6bba866008e041784.tar.xz seaweedfs-30f8600a24853e8d60b288a6bba866008e041784.zip | |
working
Diffstat (limited to 'weed/mq/schema/schema.go')
| -rw-r--r-- | weed/mq/schema/schema.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/mq/schema/schema.go b/weed/mq/schema/schema.go index 72064f5d7..1f99dda5b 100644 --- a/weed/mq/schema/schema.go +++ b/weed/mq/schema/schema.go @@ -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 } |
