parent
f8486a5eab
commit
adb4299e5b
|
@ -98,7 +98,7 @@ type event struct {
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Creates a new server with a log at the given path.
|
// Creates a new server with a log at the given path.
|
||||||
func NewServer(name string, path string, transporter Transporter, stateMachine StateMachine, context interface{}, connectiongString string) (*Server, error) {
|
func NewServer(name string, path string, transporter Transporter, stateMachine StateMachine, context interface{}, connectionString string) (*Server, error) {
|
||||||
if name == "" {
|
if name == "" {
|
||||||
return nil, errors.New("raft.Server: Name cannot be blank")
|
return nil, errors.New("raft.Server: Name cannot be blank")
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ func NewServer(name string, path string, transporter Transporter, stateMachine S
|
||||||
electionTimeout: DefaultElectionTimeout,
|
electionTimeout: DefaultElectionTimeout,
|
||||||
heartbeatTimeout: DefaultHeartbeatTimeout,
|
heartbeatTimeout: DefaultHeartbeatTimeout,
|
||||||
maxLogEntriesPerRequest: MaxLogEntriesPerRequest,
|
maxLogEntriesPerRequest: MaxLogEntriesPerRequest,
|
||||||
connectionString: connectiongString,
|
connectionString: connectionString,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup apply function.
|
// Setup apply function.
|
||||||
|
|
Loading…
Reference in New Issue