diff --git a/go/topology/cluster_commands.go b/go/topology/cluster_commands.go index 096bcd2e5..eac93c13c 100644 --- a/go/topology/cluster_commands.go +++ b/go/topology/cluster_commands.go @@ -1,9 +1,9 @@ package topology import ( + "github.com/chrislusf/raft" "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/storage" - "github.com/goraft/raft" ) type MaxVolumeIdCommand struct { diff --git a/go/topology/topology.go b/go/topology/topology.go index 2f42a4c5a..ee1477cd2 100644 --- a/go/topology/topology.go +++ b/go/topology/topology.go @@ -5,12 +5,12 @@ import ( "io/ioutil" "math/rand" + "github.com/chrislusf/raft" "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/operation" "github.com/chrislusf/seaweedfs/go/sequence" "github.com/chrislusf/seaweedfs/go/storage" "github.com/chrislusf/seaweedfs/go/util" - "github.com/goraft/raft" ) type Topology struct { diff --git a/go/weed/weed_server/master_server.go b/go/weed/weed_server/master_server.go index 8c430c5cf..5577f56b7 100644 --- a/go/weed/weed_server/master_server.go +++ b/go/weed/weed_server/master_server.go @@ -7,12 +7,12 @@ import ( "net/url" "sync" + "github.com/chrislusf/raft" "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/security" "github.com/chrislusf/seaweedfs/go/sequence" "github.com/chrislusf/seaweedfs/go/topology" "github.com/chrislusf/seaweedfs/go/util" - "github.com/goraft/raft" "github.com/gorilla/mux" ) diff --git a/go/weed/weed_server/raft_server.go b/go/weed/weed_server/raft_server.go index 4416d1d5f..9c8947862 100644 --- a/go/weed/weed_server/raft_server.go +++ b/go/weed/weed_server/raft_server.go @@ -14,9 +14,9 @@ import ( "strings" "time" + "github.com/chrislusf/raft" "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/topology" - "github.com/goraft/raft" "github.com/gorilla/mux" ) diff --git a/go/weed/weed_server/raft_server_handlers.go b/go/weed/weed_server/raft_server_handlers.go index 74c335375..b1d964a32 100644 --- a/go/weed/weed_server/raft_server_handlers.go +++ b/go/weed/weed_server/raft_server_handlers.go @@ -6,9 +6,9 @@ import ( "net/http" "strings" + "github.com/chrislusf/raft" "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/operation" - "github.com/goraft/raft" ) // Handles incoming RAFT joins.