Remove some configs
This commit is contained in:
@@ -296,7 +296,6 @@ var (
|
||||
DefaultNetworkTimeout = 100 * time.Second
|
||||
DefaultCommitRetryDelay = 200 * time.Millisecond
|
||||
DefaultBackupsRotate = 6
|
||||
DefaultDatastoreNamespace = "/raft"
|
||||
)
|
||||
|
||||
func DefaultUserRaftConfig() *UserRaftConfig {
|
||||
@@ -308,7 +307,6 @@ func DefaultUserRaftConfig() *UserRaftConfig {
|
||||
cfg.CommitRetries = DefaultCommitRetries
|
||||
cfg.CommitRetryDelay = Duration(DefaultCommitRetryDelay)
|
||||
cfg.BackupsRotate = DefaultBackupsRotate
|
||||
cfg.DatastoreNamespace = DefaultDatastoreNamespace
|
||||
|
||||
return &cfg
|
||||
}
|
||||
|
||||
@@ -1217,12 +1217,6 @@ Default is 20 (about once a week).`,
|
||||
|
||||
Comment: `EXPERIMENTAL. config to enabled node cluster with raft consensus`,
|
||||
},
|
||||
{
|
||||
Name: "HostShutdown",
|
||||
Type: "bool",
|
||||
|
||||
Comment: `will shutdown libp2p host on shutdown. Useful for testing`,
|
||||
},
|
||||
{
|
||||
Name: "DataFolder",
|
||||
Type: "string",
|
||||
@@ -1271,12 +1265,6 @@ we give up.`,
|
||||
Comment: `BackupsRotate specifies the maximum number of Raft's DataFolder
|
||||
copies that we keep as backups (renaming) after cleanup.`,
|
||||
},
|
||||
{
|
||||
Name: "DatastoreNamespace",
|
||||
Type: "string",
|
||||
|
||||
Comment: `Namespace to use when writing keys to the datastore`,
|
||||
},
|
||||
{
|
||||
Name: "Tracing",
|
||||
Type: "bool",
|
||||
|
||||
@@ -605,8 +605,6 @@ type FeeConfig struct {
|
||||
type UserRaftConfig struct {
|
||||
// EXPERIMENTAL. config to enabled node cluster with raft consensus
|
||||
ClusterModeEnabled bool
|
||||
// will shutdown libp2p host on shutdown. Useful for testing
|
||||
HostShutdown bool
|
||||
// A folder to store Raft's data.
|
||||
DataFolder string
|
||||
// InitPeersetMultiAddr provides the list of initial cluster peers for new Raft
|
||||
@@ -627,8 +625,6 @@ type UserRaftConfig struct {
|
||||
// BackupsRotate specifies the maximum number of Raft's DataFolder
|
||||
// copies that we keep as backups (renaming) after cleanup.
|
||||
BackupsRotate int
|
||||
// Namespace to use when writing keys to the datastore
|
||||
DatastoreNamespace string
|
||||
// Tracing enables propagation of contexts across binary boundaries.
|
||||
Tracing bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user