Fix value_deserializer
parameter in example
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user