mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-17 05:24:42 +00:00
Refactor to move common libraries out of project
This commit is contained in:
+3
-2
@@ -1,11 +1,12 @@
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/tendermint/tendermint/Godeps/_workspace/src/github.com/naoina/toml"
|
||||
"github.com/naoina/toml"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
)
|
||||
|
||||
type Config interface {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
// We can't use github.com/tendermint/tendermint/logger
|
||||
// because that would create a dependency cycle.
|
||||
"github.com/tendermint/tendermint/Godeps/_workspace/src/github.com/tendermint/log15"
|
||||
)
|
||||
|
||||
var log = log15.New("module", "config")
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
cfg "github.com/tendermint/tendermint/config"
|
||||
. "github.com/tendermint/go-common"
|
||||
cfg "github.com/tendermint/go-config"
|
||||
)
|
||||
|
||||
func getTMRoot(rootDir string) string {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
// Import this in all *_test.go files to initialize ~/.tendermint_test.
|
||||
|
||||
package tendermint_test
|
||||
@@ -7,8 +8,8 @@ import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
cfg "github.com/tendermint/tendermint/config"
|
||||
. "github.com/tendermint/go-common"
|
||||
cfg "github.com/tendermint/go-config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user