raft cluster core

This commit is contained in:
finley
2024-09-16 16:53:10 +08:00
parent 75030407cb
commit b699918223
18 changed files with 1792 additions and 35 deletions

View File

@@ -63,6 +63,10 @@ func MakeClient(addr string) (*Client, error) {
}, nil
}
func (client *Client) RemoteAddress() string {
return client.addr
}
// Start starts asynchronous goroutines
func (client *Client) Start() {
client.ticker = time.NewTicker(10 * time.Second)