mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 14:30:43 +01:00
working
This commit is contained in:
1 parent
7a9b115cc2
commit
30f8600a24
3 files changed
+7
-5
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user