File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -410,18 +410,20 @@ defmodule Mongo.MongoDBConnection do
410
410
end
411
411
412
412
defp handshake_command ( % { stable_api: stable_api } , client ) do
413
- StableVersion . merge_stable_api ( [ hello: 1 , client: client ] , stable_api )
413
+ [ client: client ]
414
+ |> StableVersion . merge_stable_api ( stable_api )
415
+ |> Keyword . put ( :hello , 1 )
414
416
end
415
417
416
418
defp hello_command ( cmd , % { hello_ok: false } ) do
417
419
cmd
418
- |> Keyword . put ( :ismaster , 1 )
419
420
|> Keyword . put ( :helloOk , true )
421
+ |> Keyword . put ( :ismaster , 1 )
420
422
end
421
423
422
424
defp hello_command ( cmd , % { hello_ok: true , stable_api: stable_api } ) do
423
425
cmd
424
- |> Keyword . put ( :hello , 1 )
425
426
|> StableVersion . merge_stable_api ( stable_api )
427
+ |> Keyword . put ( :hello , 1 )
426
428
end
427
429
end
You can’t perform that action at this time.
0 commit comments