Skip to content

Commit fd89412

Browse files
author
Steven Diviney
committed
Correcr readme doc
1 parent f3e5078 commit fd89412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Kafka.new(partitioner: partitioner, ...)
384384

385385
##### Supported partitioning schemes
386386

387-
In order for semantic partitioning to work a `partition_key` must map to the same partition number every time. The general approach, and the one used by this library, is to hash the key and mod it by the number of partitions. There are many different algorithms to calculate a hash. By default `crc32` is used. `murmur2` is also supported for compatibility with Java based Kafka producers.
387+
In order for semantic partitioning to work a `partition_key` must map to the same partition number every time. The general approach, and the one used by this library, is to hash the key and mod it by the number of partitions. There are many different algorithms that can be used to calculate a hash. By default `crc32` is used. `murmur2` is also supported for compatibility with Java based Kafka producers.
388388

389389
To use `murmur2` hashing pass it as an argument to `Partitioner`. For example:
390390

0 commit comments

Comments
 (0)