diff --git a/lib/mongo/messages.ex b/lib/mongo/messages.ex index 9a2f1b05..b5ed10df 100644 --- a/lib/mongo/messages.ex +++ b/lib/mongo/messages.ex @@ -120,7 +120,7 @@ defmodule Mongo.Messages do <> = payload <> = 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