Refactor to move common libraries out of project

This commit is contained in:
Jae Kwon
2015-10-22 17:39:06 -07:00
parent 7c12c5aee3
commit c4ed55d801
277 changed files with 406 additions and 11304 deletions
+3 -2
View File
@@ -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 {
-9
View File
@@ -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")
+2 -2
View File
@@ -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 {
+3 -2
View File
@@ -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() {