File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,19 @@ final class DependencyBuilder {
41
41
let toAssemble = assemblyCache. toAssemble
42
42
43
43
// Instantiate all types
44
- var createdTypes = Set < String > ( )
44
+ var createdTypes = Set < ObjectIdentifier > ( )
45
45
for ref in toAssemble {
46
46
guard !self . isRegisteredInParent ( ref) else {
47
47
continue
48
48
}
49
49
let assembly = try instantiate ( moduleType: ref. type)
50
50
// Ensure the same assembly isn't added twice
51
- let typeName = String ( describing : type ( of: assembly) )
52
- guard !createdTypes. contains ( typeName ) else {
51
+ let typeId = ObjectIdentifier ( type ( of: assembly) )
52
+ guard !createdTypes. contains ( typeId ) else {
53
53
continue
54
54
}
55
55
assemblies. append ( assembly)
56
- createdTypes. insert ( typeName )
56
+ createdTypes. insert ( typeId )
57
57
}
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments