inmem_transport.go
func (i *InmemTransport) RequestVote(id ServerID, target ServerAddress, args *RequestVoteRequest, resp *RequestVoteResponse) error {
	rpcResp, err := i.makeRPC(target, args, nil, i.timeout)
	if err != nil {
		return err
	}

	// Copy the result back
	out := rpcResp.Response.(*RequestVoteResponse)
	*resp = *out
	return nil
}
func (i *InmemTransport) RequestVote(id ServerID, target ServerAddress, args *RequestVoteRequest, resp *RequestVoteResponse) error {
	rpcResp, err := i.makeRPC(target, args, nil, i.timeout)
	if err != nil {
		return err
	}

	// Copy the result back
	out := rpcResp.Response.(*RequestVoteResponse)
	*resp = *out
	return nil
}
func ( i * InmemTransport ) RequestVote ( id ServerID , target ServerAddress , args * RequestVoteRequest , resp * RequestVoteResponse ) error { rpcResp , err := i . makeRPC ( target , args , nil , i . timeout ) if err != nil { return err } // Copy the result back out := rpcResp . Response . ( * RequestVoteResponse ) * resp = * out return nil }
// RequestVote implements the Transport interface.
RequestVote implements the Transport interface .