File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
driver-kotlin-coroutine/src/main/kotlin/com/mongodb/kotlin/client/coroutine
driver-kotlin-sync/src/main/kotlin/com/mongodb/kotlin/client Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ public class MongoClient(private val wrapped: JMongoClient) : Closeable {
9292 val builder =
9393 if (mongoDriverInformation == null ) MongoDriverInformation .builder()
9494 else MongoDriverInformation .builder(mongoDriverInformation)
95- return MongoClient (JMongoClients .create(settings, builder.driverName(" kotlin" ).build()))
95+ return MongoClient (
96+ JMongoClients .create(
97+ settings, builder.driverName(" kotlin" ).driverPlatform(" kotlin/${KotlinVersion .CURRENT } " ).build()))
9698 }
9799 }
98100
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ public class MongoClient(private val wrapped: JMongoClient) : Closeable {
8787 val builder =
8888 if (mongoDriverInformation == null ) MongoDriverInformation .builder()
8989 else MongoDriverInformation .builder(mongoDriverInformation)
90- return MongoClient (JMongoClients .create(settings, builder.driverName(" kotlin" ).build()))
90+ return MongoClient (
91+ JMongoClients .create(
92+ settings, builder.driverName(" kotlin" ).driverPlatform(" kotlin/${KotlinVersion .CURRENT } " ).build()))
9193 }
9294 }
9395
You can’t perform that action at this time.
0 commit comments