diff --git a/cluster.go b/cluster.go index f61173c3b..45bbb835d 100644 --- a/cluster.go +++ b/cluster.go @@ -36,8 +36,8 @@ import ( ) const ( - // DefaultPartitionN is the default number of partitions in a cluster. - DefaultPartitionN = 256 + // defaultPartitionN is the default number of partitions in a cluster. + defaultPartitionN = 256 // ClusterState represents the state returned in the /status endpoint. ClusterStateStarting = "STARTING" @@ -219,7 +219,7 @@ type cluster struct { func newCluster() *cluster { return &cluster{ Hasher: &jmphasher{}, - partitionN: DefaultPartitionN, + partitionN: defaultPartitionN, ReplicaN: 1, joiningLeavingNodes: make(chan nodeAction, 10), // buffered channel