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 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
88
88
val builder =
89
89
if (mongoDriverInformation == null ) MongoDriverInformation .builder()
90
90
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()))
92
95
}
93
96
}
94
97
Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ public class MongoClient(private val wrapped: JMongoClient) : MongoCluster(wrapp
86
86
val builder =
87
87
if (mongoDriverInformation == null ) MongoDriverInformation .builder()
88
88
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()))
90
93
}
91
94
}
92
95
You can’t perform that action at this time.
0 commit comments