mirror of https://github.com/go-gorm/gorm.git
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)
|
||||
}
|
||||
} else {
|
||||
<-s.(*Schema).initialized
|
||||
return s.(*Schema), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue