chore(*): gofmt everything

This commit is contained in:
Brandon Philips
2014-02-01 22:56:20 -08:00
parent 0566bf2d5d
commit ea8a353545
33 changed files with 67 additions and 83 deletions

View File

@@ -25,12 +25,12 @@ const retryInterval = 10
const ThresholdMonitorTimeout = 5 * time.Second
type PeerServerConfig struct {
Name string
Scheme string
URL string
SnapshotCount int
MaxClusterSize int
RetryTimes int
Name string
Scheme string
URL string
SnapshotCount int
MaxClusterSize int
RetryTimes int
}
type PeerServer struct {
@@ -65,11 +65,11 @@ type snapshotConf struct {
func NewPeerServer(psConfig PeerServerConfig, registry *Registry, store store.Store, mb *metrics.Bucket, followersStats *raftFollowersStats, serverStats *raftServerStats) *PeerServer {
s := &PeerServer{
Config: psConfig,
registry: registry,
store: store,
Config: psConfig,
registry: registry,
store: store,
followersStats: followersStats,
serverStats: serverStats,
serverStats: serverStats,
timeoutThresholdChan: make(chan interface{}, 1),

View File

@@ -1,2 +1,3 @@
package server
const ReleaseVersion = "v0.2.1-pre"

View File

@@ -29,9 +29,9 @@ type Server struct {
peerServer *PeerServer
registry *Registry
store store.Store
metrics *metrics.Bucket
metrics *metrics.Bucket
trace bool
trace bool
}
// Creates a new Server.
@@ -42,7 +42,7 @@ func New(name, url string, peerServer *PeerServer, registry *Registry, store sto
store: store,
registry: registry,
peerServer: peerServer,
metrics: mb,
metrics: mb,
}
return s

View File

@@ -2,8 +2,8 @@ package v2
import (
"fmt"
"testing"
"net/http"
"testing"
"github.com/coreos/etcd/server"
"github.com/coreos/etcd/tests"