mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
gofmt
This commit is contained in:
parent
9efba81c09
commit
fad972304c
2
etcd.go
2
etcd.go
@ -234,8 +234,6 @@ func main() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func createTransporter(st int) transporter {
|
func createTransporter(st int) transporter {
|
||||||
t := transporter{}
|
t := transporter{}
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"github.com/coreos/go-raft"
|
"github.com/coreos/go-raft"
|
||||||
"io"
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -105,7 +105,6 @@ func (t transporter) Post(path string, body io.Reader) (*http.Response, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Send server side GET request
|
// Send server side GET request
|
||||||
func (t transporter) Get(path string) (*http.Response, error) {
|
func (t transporter) Get(path string) (*http.Response, error) {
|
||||||
if t.client != nil {
|
if t.client != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user