func DefaultConfig() *Config {
	return &Config{
		ProtocolVersion:    ProtocolVersionMax,
		HeartbeatTimeout:   1000 * time.Millisecond,
		ElectionTimeout:    1000 * time.Millisecond,
		CommitTimeout:      50 * time.Millisecond,
		MaxAppendEntries:   64,
		ShutdownOnRemove:   true,
		TrailingLogs:       10240,
		SnapshotInterval:   120 * time.Second,
		SnapshotThreshold:  8192,
		LeaderLeaseTimeout: 500 * time.Millisecond,
		LogLevel:           "DEBUG",
	}
}
func DefaultConfig() *Config {
	return &Config{
		ProtocolVersion:    ProtocolVersionMax,
		HeartbeatTimeout:   1000 * time.Millisecond,
		ElectionTimeout:    1000 * time.Millisecond,
		CommitTimeout:      50 * time.Millisecond,
		MaxAppendEntries:   64,
		ShutdownOnRemove:   true,
		TrailingLogs:       10240,
		SnapshotInterval:   120 * time.Second,
		SnapshotThreshold:  8192,
		LeaderLeaseTimeout: 500 * time.Millisecond,
		LogLevel:           "DEBUG",
	}
}
func DefaultConfig ( ) * Config { return & Config { ProtocolVersion : ProtocolVersionMax , HeartbeatTimeout : 1000 * time . Millisecond , ElectionTimeout : 1000 * time . Millisecond , CommitTimeout : 50 * time . Millisecond , MaxAppendEntries : 64 , ShutdownOnRemove : true , TrailingLogs : 10240 , SnapshotInterval : 120 * time . Second , SnapshotThreshold : 8192 , LeaderLeaseTimeout : 500 * time . Millisecond , LogLevel : " " , } }
// DefaultConfig returns a Config with usable defaults.
DefaultConfig returns a Config with usable defaults .