mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #122 from philips/fix-nip-in-transporter
chore(trasnsporter): delete unused variables
This commit is contained in:
commit
f1786b8083
@ -151,12 +151,10 @@ func (t transporter) SendSnapshotRecoveryRequest(server *raft.Server, peer *raft
|
||||
|
||||
// Send server side POST request
|
||||
func (t transporter) Post(path string, body io.Reader) (*http.Response, error) {
|
||||
resp, err := t.client.Post(path, "application/json", body)
|
||||
return resp, err
|
||||
return t.client.Post(path, "application/json", body)
|
||||
}
|
||||
|
||||
// Send server side GET request
|
||||
func (t transporter) Get(path string) (*http.Response, error) {
|
||||
resp, err := t.client.Get(path)
|
||||
return resp, err
|
||||
return t.client.Get(path)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user