File tree Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Expand file tree Collapse file tree 4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ before_script:
29
29
30
30
script :
31
31
- mix test
32
- - not_allowed=(1.3 1.4 1.5)
32
+ - not_allowed=(1.3 1.4 1.5 1.6 1.7 )
33
33
- case "${not_allowed[@]}" in *"${TRAVIS_ELIXIR_VERSION}"*) dialyzer=0 ;; *) dialyzer=1 ;; esac
34
34
- if [ "$dialyzer" -eq 1 ]; then mix dialyzer --halt-exit-status; fi
35
35
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ defmodule Mongo do
56
56
57
57
@ timeout 5000
58
58
59
- @ dialyzer [ no_match: [ count_documents!: 4 ] ]
59
+ # @dialyzer [no_match: [count_documents!: 4]]
60
60
61
61
@ type conn :: DbConnection.Conn
62
62
@ type collection :: String . t
@@ -336,8 +336,8 @@ defmodule Mongo do
336
336
337
337
case documents do
338
338
[ % { "n" => count } ] -> { :ok , count }
339
- [ ] -> { :error , :nothing_returned }
340
- _ -> { :error , :too_many_documents_returned }
339
+ [ ] -> { :error , :nothing_returned }
340
+ _ -> { :error , :too_many_documents_returned }
341
341
end
342
342
end
343
343
@@ -523,7 +523,7 @@ defmodule Mongo do
523
523
@ doc """
524
524
Sends a ping command to the server.
525
525
"""
526
- @ spec ping ( GenServer . server ) :: result! ( BSON . document )
526
+ @ spec ping ( GenServer . server ) :: result ( BSON . document )
527
527
def ping ( topology_pid ) do
528
528
command ( topology_pid , % { ping: 1 } , [ batch_size: 1 ] )
529
529
end
Original file line number Diff line number Diff line change @@ -100,11 +100,6 @@ defmodule Mongo.Cursor do
100
100
Enum . reject ( keyword , fn { _key , value } -> is_nil ( value ) end )
101
101
end
102
102
103
- defp filter_nils ( map ) when is_map ( map ) do
104
- Enum . reject ( map , fn { _key , value } -> is_nil ( value ) end )
105
- |> Enum . into ( % { } )
106
- end
107
-
108
103
defp after_fun ( opts ) do
109
104
fn
110
105
state ( cursor: 0 ) -> :ok
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ defmodule Mongo.Monitor do
77
77
78
78
@ doc false
79
79
def handle_call ( :check , _from , state ) do
80
- check ( state )
80
+ { _ , state , diff } = check ( state )
81
+ { :reply , diff , state }
81
82
end
82
83
83
84
@ doc false
You can’t perform that action at this time.
0 commit comments