Skip to content

Commit

Permalink
Update lib/mongo/messages.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Rodolfo Carvalho <[email protected]>
  • Loading branch information
zookzook and rhcarvalho authored Sep 19, 2023
1 parent dced77f commit a1aec86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/messages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ defmodule Mongo.Messages do
<<size::int32(), _rest::binary>> = payload
<<doc::binary(size), rest::binary>> = payload

with {doc, ""} <- @decode_module.document(doc) do
with {doc, ""} <- @decoder_module.document(doc) do
decode_sections(rest, [section(payload_type: 0, payload: payload(doc: doc)) | acc])
end
end
Expand Down

0 comments on commit a1aec86

Please sign in to comment.