From 15a87ab5b06e404e48777b7d400fa3666d0a4f71 Mon Sep 17 00:00:00 2001 From: Denis Gudim Date: Mon, 2 Jan 2023 12:08:46 +0300 Subject: [PATCH] upgrade(raft): restored source etcd package structure --- raft/constants.go | 2 +- raft/etcd/{ => raft}/log.go | 0 raft/etcd/{ => raft}/log_unstable.go | 0 raft/etcd/{ => raft}/logger.go | 0 raft/etcd/{ => raft}/node.go | 0 raft/etcd/{ => raft}/progress.go | 0 raft/etcd/{ => raft}/raft.go | 0 raft/etcd/{ => raft}/rawnode.go | 0 raft/etcd/{ => raft}/read_only.go | 0 raft/etcd/{ => raft}/status.go | 0 raft/etcd/{ => raft}/storage.go | 0 raft/etcd/{ => raft}/util.go | 0 raft/handler.go | 2 +- 13 files changed, 2 insertions(+), 2 deletions(-) rename raft/etcd/{ => raft}/log.go (100%) rename raft/etcd/{ => raft}/log_unstable.go (100%) rename raft/etcd/{ => raft}/logger.go (100%) rename raft/etcd/{ => raft}/node.go (100%) rename raft/etcd/{ => raft}/progress.go (100%) rename raft/etcd/{ => raft}/raft.go (100%) rename raft/etcd/{ => raft}/rawnode.go (100%) rename raft/etcd/{ => raft}/read_only.go (100%) rename raft/etcd/{ => raft}/status.go (100%) rename raft/etcd/{ => raft}/storage.go (100%) rename raft/etcd/{ => raft}/util.go (100%) diff --git a/raft/constants.go b/raft/constants.go index f53a7ed0ef..8528b04415 100644 --- a/raft/constants.go +++ b/raft/constants.go @@ -1,6 +1,6 @@ package raft -import "github.com/ethereum/go-ethereum/raft/etcd" +import etcd "github.com/ethereum/go-ethereum/raft/etcd/raft" const ( //protocolName = "raft" diff --git a/raft/etcd/log.go b/raft/etcd/raft/log.go similarity index 100% rename from raft/etcd/log.go rename to raft/etcd/raft/log.go diff --git a/raft/etcd/log_unstable.go b/raft/etcd/raft/log_unstable.go similarity index 100% rename from raft/etcd/log_unstable.go rename to raft/etcd/raft/log_unstable.go diff --git a/raft/etcd/logger.go b/raft/etcd/raft/logger.go similarity index 100% rename from raft/etcd/logger.go rename to raft/etcd/raft/logger.go diff --git a/raft/etcd/node.go b/raft/etcd/raft/node.go similarity index 100% rename from raft/etcd/node.go rename to raft/etcd/raft/node.go diff --git a/raft/etcd/progress.go b/raft/etcd/raft/progress.go similarity index 100% rename from raft/etcd/progress.go rename to raft/etcd/raft/progress.go diff --git a/raft/etcd/raft.go b/raft/etcd/raft/raft.go similarity index 100% rename from raft/etcd/raft.go rename to raft/etcd/raft/raft.go diff --git a/raft/etcd/rawnode.go b/raft/etcd/raft/rawnode.go similarity index 100% rename from raft/etcd/rawnode.go rename to raft/etcd/raft/rawnode.go diff --git a/raft/etcd/read_only.go b/raft/etcd/raft/read_only.go similarity index 100% rename from raft/etcd/read_only.go rename to raft/etcd/raft/read_only.go diff --git a/raft/etcd/status.go b/raft/etcd/raft/status.go similarity index 100% rename from raft/etcd/status.go rename to raft/etcd/raft/status.go diff --git a/raft/etcd/storage.go b/raft/etcd/raft/storage.go similarity index 100% rename from raft/etcd/storage.go rename to raft/etcd/raft/storage.go diff --git a/raft/etcd/util.go b/raft/etcd/raft/util.go similarity index 100% rename from raft/etcd/util.go rename to raft/etcd/raft/util.go diff --git a/raft/handler.go b/raft/handler.go index 0a37e24df2..4439f15bc1 100644 --- a/raft/handler.go +++ b/raft/handler.go @@ -22,7 +22,7 @@ import ( "github.com/coreos/etcd/snap" "github.com/coreos/etcd/wal" mapset "github.com/deckarep/golang-set" - "github.com/ethereum/go-ethereum/raft/etcd" + etcd "github.com/ethereum/go-ethereum/raft/etcd/raft" "github.com/syndtr/goleveldb/leveldb" "github.com/ethereum/go-ethereum/core"