Unexport DefaultPartitionN

This commit is contained in:
Cody Soyland 2018-07-05 21:42:12 -05:00
parent 9fd8cdb007
commit c102143b50

View file

@ -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