Skip to content

Commit 577f6fd

Browse files
committed
指定 objectTypes,优化初始化速度
1 parent 61e1c39 commit 577f6fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Common/RealmConfiguration.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ let kRealmDefaultConfiguration = {
3232
default:
3333
break
3434
}
35-
}
35+
},
36+
objectTypes: [Message.self]
3637
)
3738
return config
3839
}()

0 commit comments

Comments
 (0)