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
434b0045db
commit
d3649d3254
2
etcd.go
2
etcd.go
@ -364,7 +364,7 @@ func newTransporter(scheme string, tlsConf tls.Config) transporter {
|
|||||||
t.scheme = scheme
|
t.scheme = scheme
|
||||||
|
|
||||||
tr := &http.Transport{
|
tr := &http.Transport{
|
||||||
Dial: dialTimeout,
|
Dial: dialTimeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
if scheme == "https" {
|
if scheme == "https" {
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type snapshotConf struct {
|
type snapshotConf struct {
|
||||||
// basic
|
// basic
|
||||||
checkingInterval time.Duration
|
checkingInterval time.Duration
|
||||||
lastWrites uint64
|
lastWrites uint64
|
||||||
writesThr uint64
|
writesThr uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
var snapConf *snapshotConf
|
var snapConf *snapshotConf
|
||||||
|
|
||||||
func newSnapshotConf() *snapshotConf {
|
func newSnapshotConf() *snapshotConf {
|
||||||
return &snapshotConf {time.Second*3, etcdStore.TotalWrites(), 20*1000}
|
return &snapshotConf{time.Second * 3, etcdStore.TotalWrites(), 20 * 1000}
|
||||||
}
|
}
|
||||||
|
|
||||||
func monitorSnapshot() {
|
func monitorSnapshot() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user