mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-12-13 17:10:36 +00:00
Added modelregistry.GetDefaultRegistry
This commit is contained in:
parent
23e2db1496
commit
76e98d02c3
@ -28,6 +28,10 @@ func NewModelRegistry() *DefaultModelRegistry {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetDefaultRegistry() *DefaultModelRegistry {
|
||||||
|
return defaultRegistry
|
||||||
|
}
|
||||||
|
|
||||||
func SetDefaultRegistry(registry *DefaultModelRegistry) {
|
func SetDefaultRegistry(registry *DefaultModelRegistry) {
|
||||||
registriesMutex.Lock()
|
registriesMutex.Lock()
|
||||||
defer registriesMutex.Unlock()
|
defer registriesMutex.Unlock()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user