|
|
@@ -137,7 +137,9 @@ type EtcdServer struct {
|
|
|
|
|
|
node raft.Node
|
|
|
raftStorage *raft.MemoryStorage
|
|
|
- store store.Store
|
|
|
+ storage Storage
|
|
|
+
|
|
|
+ store store.Store
|
|
|
|
|
|
stats *stats.ServerStats
|
|
|
lstats *stats.LeaderStats
|
|
|
@@ -148,8 +150,6 @@ type EtcdServer struct {
|
|
|
// panic.
|
|
|
sendhub SendHub
|
|
|
|
|
|
- storage Storage
|
|
|
-
|
|
|
Ticker <-chan time.Time
|
|
|
SyncTicker <-chan time.Time
|
|
|
|
|
|
@@ -1002,12 +1002,3 @@ func getBool(v *bool) (vv bool, set bool) {
|
|
|
}
|
|
|
return *v, true
|
|
|
}
|
|
|
-
|
|
|
-func containsUint64(a []uint64, x uint64) bool {
|
|
|
- for _, v := range a {
|
|
|
- if v == x {
|
|
|
- return true
|
|
|
- }
|
|
|
- }
|
|
|
- return false
|
|
|
-}
|