Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Transport Interface #10

Closed
benbjohnson opened this issue May 14, 2013 · 1 comment
Closed

Transport Interface #10

benbjohnson opened this issue May 14, 2013 · 1 comment
Assignees

Comments

@benbjohnson
Copy link
Contributor

Replace the callback system in raft.Server to use the following interface instead:

type Transporter interface {
    SendAppendEntriesRequest(server *Server, peer *Peer, req *AppendEntriesRequest) (*AppendEntriesResponse, error)
    SendVoteRequest(server *Server, peer *Peer, req *RequestVoteRequest) (*RequestVoteResponse, error)
}

cc: @tadglines

@benbjohnson
Copy link
Contributor Author

Done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant