()
| 221 | } |
| 222 | |
| 223 | func newModelRegistry() *ModelRegistry { |
| 224 | return &ModelRegistry{ |
| 225 | models: eosc.BuildUntyped[string, IModel](), |
| 226 | defaultModels: eosc.BuildUntyped[string, IModel](), |
| 227 | typeIndex: make(map[string]*modelNode), |
| 228 | reverseMap: make(map[string]*modelNode), |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | func (r *ModelRegistry) getShard(key string) *sync.RWMutex { |
| 233 | h := fnv.New32a() |
no outgoing calls
no test coverage detected