Skip to content

Commit 61965c5

Browse files
committed
Deprecated initialization method should still call original method
1 parent 6744673 commit 61965c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/MongoSwift/MongoSwift.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ private final class MongocInitializer {
1111

1212
/// :nodoc:
1313
@available(*, deprecated, message: "Calling this method no longer has any effect.")
14-
public func initialize() {}
14+
public func initialize() {
15+
initializeMongoc()
16+
}
1517

1618
/// :nodoc:
1719
@available(*, deprecated, message: "Use cleanupMongoSwift() instead.")

0 commit comments

Comments
 (0)