瀏覽代碼

update name of partitioner option so it makes more sense

Michael Ernst 7 年之前
父節點
當前提交
a74fb772b5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      partitioner.go

+ 2 - 2
partitioner.go

@@ -60,8 +60,8 @@ func WithCustomHashFunction(hasher func() hash.Hash32) HashPartitionerOption {
 	}
 	}
 }
 }
 
 
-// WithCustomRandomPartitioner lets you specify what HashPartitioner should be used in case a Distribution Key is empty
-func WithCustomRandomPartitioner(randomHP *hashPartitioner) HashPartitionerOption {
+// WithCustomFallbackPartitioner lets you specify what HashPartitioner should be used in case a Distribution Key is empty
+func WithCustomFallbackPartitioner(randomHP *hashPartitioner) HashPartitionerOption {
 	return func(hp *hashPartitioner) {
 	return func(hp *hashPartitioner) {
 		hp.random = hp
 		hp.random = hp
 	}
 	}