File tree Expand file tree Collapse file tree 2 files changed +8
-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 +8
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,10 @@ public class MongoClient(private val wrapped: JMongoClient) : MongoCluster(wrapp
8888 val builder =
8989 if (mongoDriverInformation == null ) MongoDriverInformation .builder()
9090 else MongoDriverInformation .builder(mongoDriverInformation)
91- return MongoClient (JMongoClients .create(settings, builder.driverName(" kotlin" ).build()))
91+ return MongoClient (
92+ JMongoClients .create(
93+ settings,
94+ builder.driverName(" kotlin" ).driverPlatform(" kotlin/${KotlinVersion .CURRENT } " ).build()))
9295 }
9396 }
9497
Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ public class MongoClient(private val wrapped: JMongoClient) : MongoCluster(wrapp
8686 val builder =
8787 if (mongoDriverInformation == null ) MongoDriverInformation .builder()
8888 else MongoDriverInformation .builder(mongoDriverInformation)
89- return MongoClient (JMongoClients .create(settings, builder.driverName(" kotlin" ).build()))
89+ return MongoClient (
90+ JMongoClients .create(
91+ settings,
92+ builder.driverName(" kotlin" ).driverPlatform(" kotlin/${KotlinVersion .CURRENT } " ).build()))
9093 }
9194 }
9295
You can’t perform that action at this time.
0 commit comments