We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MongoModelStorage
1 parent d3ee009 commit 40e4a9fCopy full SHA for 40e4a9f
1 file changed
Sources/MongoDBModel/MongoDatabase.swift
@@ -2,13 +2,16 @@ import Foundation
2
@_exported import CoreModel
3
@_exported import MongoSwift
4
5
-public actor MongoModelStorage: ModelStorage {
+public struct MongoModelStorage: ModelStorage {
6
7
public let database: MongoDatabase
8
9
public let model: Model
10
11
- public init(database: MongoDatabase, model: Model) {
+ public init(
12
+ database: MongoDatabase,
13
+ model: Model
14
+ ) {
15
self.database = database
16
self.model = model
17
}
0 commit comments