Skip to content

Commit c1b2168

Browse files
committed
change helloOk value to true
1 parent 324bf90 commit c1b2168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/mongo_db_connection.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ defmodule Mongo.MongoDBConnection do
406406
end
407407

408408
defp handshake_command(%{stable_api: nil}, client) do
409-
[ismaster: 1, helloOk: 1, client: client]
409+
[ismaster: 1, helloOk: true, client: client]
410410
end
411411

412412
defp handshake_command(%{stable_api: stable_api}, client) do
@@ -416,7 +416,7 @@ defmodule Mongo.MongoDBConnection do
416416
defp hello_command(cmd, %{hello_ok: false}) do
417417
cmd
418418
|> Keyword.put(:ismaster, 1)
419-
|> Keyword.put(:helloOk, 1)
419+
|> Keyword.put(:helloOk, true)
420420
end
421421

422422
defp hello_command(cmd, %{hello_ok: true, stable_api: stable_api}) do

0 commit comments

Comments
 (0)