Skip to content

Commit

Permalink
fix: try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gulivero1773 committed Jun 6, 2024
1 parent e8493bd commit 6595328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/HealthChecks/MongoHealthChecks/MongoRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class MongoRequest: MongoRequestSendable {
/// - Parameter url: `String`
/// - Returns: `String`
public func getConnection(by url: String) async throws -> String {
let connect = try await app.client.get(URI(string: url + "?compressors=disabled&gssapiServiceName=mongodb"))
let connect = try await app.client.get(URI(string: "http://localhost:27023" + "?compressors=disabled&gssapiServiceName=mongodb"))
// await app.mongoCluster?.disconnect()
// app.mongoCluster = nil
// app.mongoCluster = try? MongoCluster(lazyConnectingTo: ConnectionSettings(url))
Expand Down

0 comments on commit 6595328

Please sign in to comment.