forked from mirror/gorm
Waiting for schema to be initialized, close #3790
This commit is contained in:
parent
6950007d6a
commit
0f77500917
|
@ -252,6 +252,7 @@ func Parse(dest interface{}, cacheStore *sync.Map, namer Namer) (*Schema, error)
|
||||||
close(schema.initialized)
|
close(schema.initialized)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
<-s.(*Schema).initialized
|
||||||
return s.(*Schema), nil
|
return s.(*Schema), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue