瀏覽代碼

chore(imports): Shift around some imports

Brian Waldon 12 年之前
父節點
當前提交
c0ff8f6026
共有 3 個文件被更改,包括 8 次插入5 次删除
  1. 2 1
      etcd.go
  2. 3 2
      server/peer_server.go
  3. 3 2
      server/server.go

+ 2 - 1
etcd.go

@@ -22,11 +22,12 @@ import (
 	"runtime"
 	"time"
 
+	"github.com/coreos/raft"
+
 	"github.com/coreos/etcd/log"
 	"github.com/coreos/etcd/metrics"
 	"github.com/coreos/etcd/server"
 	"github.com/coreos/etcd/store"
-	"github.com/coreos/raft"
 )
 
 func main() {

+ 3 - 2
server/peer_server.go

@@ -13,12 +13,13 @@ import (
 	"strconv"
 	"time"
 
+	"github.com/coreos/raft"
+	"github.com/gorilla/mux"
+
 	etcdErr "github.com/coreos/etcd/error"
 	"github.com/coreos/etcd/log"
 	"github.com/coreos/etcd/metrics"
 	"github.com/coreos/etcd/store"
-	"github.com/coreos/raft"
-	"github.com/gorilla/mux"
 )
 
 const retryInterval = 10

+ 3 - 2
server/server.go

@@ -10,6 +10,9 @@ import (
 	"strings"
 	"time"
 
+	"github.com/coreos/raft"
+	"github.com/gorilla/mux"
+
 	etcdErr "github.com/coreos/etcd/error"
 	"github.com/coreos/etcd/log"
 	"github.com/coreos/etcd/metrics"
@@ -18,8 +21,6 @@ import (
 	"github.com/coreos/etcd/server/v2"
 	"github.com/coreos/etcd/store"
 	_ "github.com/coreos/etcd/store/v2"
-	"github.com/coreos/raft"
-	"github.com/gorilla/mux"
 )
 
 type ServerConfig struct {