diff options
author | Cristi Burcă <scribu@gmail.com> | 2016-03-02 05:56:01 +0200 |
---|---|---|
committer | Cristi Burcă <scribu@gmail.com> | 2016-03-02 05:56:01 +0200 |
commit | 637f47c80f5cf203fb94d06b05ccc622d74c1891 (patch) | |
tree | f6a32974c452aeb15bffa94a85a47c0ecb8c181f | |
parent | c8662bfa6baa9fdd6bb0fd1b8b893f7f35a461f7 (diff) | |
download | kafka-python-637f47c80f5cf203fb94d06b05ccc622d74c1891.tar.gz |
Fix `value_deserializer` parameter in example
-rw-r--r-- | docs/index.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst index ea138b0..d8f826a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -58,7 +58,7 @@ that expose basic message attributes: topic, partition, offset, key, and value: >>> msg = next(consumer) >>> # Deserialize msgpack-encoded values ->>> consumer = KafkaConsumer(value_deserializer=msgpack.dumps) +>>> consumer = KafkaConsumer(value_deserializer=msgpack.loads) >>> consumer.subscribe(['msgpackfoo']) >>> for msg in consumer: ... msg = next(consumer) |