Waiting for schema to be initialized, close #3790

This commit is contained in:
Jinzhu 2020-11-27 17:04:56 +08:00
parent 6950007d6a
commit 0f77500917
1 changed files with 1 additions and 0 deletions

View File

@ -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
}