fix import paths

This commit is contained in:
Ethan Buchman
2018-07-01 22:36:49 -04:00
parent 233b35a2a9
commit d55243f0e6
210 changed files with 305 additions and 305 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"sync"
"time"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
/* AutoFile usage
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"testing"
"time"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
func TestSIGHUP(t *testing.T) {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strconv"
"strings"
auto "github.com/tendermint/tmlibs/autofile"
cmn "github.com/tendermint/tmlibs/common"
auto "github.com/tendermint/tendermint/libs/autofile"
cmn "github.com/tendermint/tendermint/libs/common"
)
const Version = "0.0.1"
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"sync"
"time"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
const (
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
// NOTE: Returned group has ticker stopped
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"crypto/sha256"
"testing"
"github.com/tendermint/tmlibs/bech32"
"github.com/tendermint/tendermint/libs/bech32"
)
func TestEncodeAndDecode(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
)
const (
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"strings"
"testing"
tmflags "github.com/tendermint/tmlibs/cli/flags"
"github.com/tendermint/tmlibs/log"
tmflags "github.com/tendermint/tendermint/libs/cli/flags"
"github.com/tendermint/tendermint/libs/log"
)
const (
+1 -1
View File
@@ -50,7 +50,7 @@ func TestRepeatTimer(t *testing.T) {
// TODO detect number of running
// goroutines to ensure that
// no other times will fire.
// See https://github.com/tendermint/tmlibs/issues/120.
// See https://github.com/tendermint/tendermint/libs/issues/120.
time.Sleep(time.Millisecond * 100)
done := true
select {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"sync/atomic"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
)
var (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
func cleanupDBDir(dir, name string) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
func BenchmarkRandomReadsWrites2(b *testing.B) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
//----------------------------------------
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"sync"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
func _fmt(f string, az ...interface{}) string {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"sync"
"github.com/pkg/errors"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
const (
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/syndtr/goleveldb/leveldb/iterator"
"github.com/syndtr/goleveldb/leveldb/opt"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
func init() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"testing"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
func BenchmarkRandomReadsWrites(b *testing.B) {
+1 -1
View File
@@ -114,7 +114,7 @@ func (db *MemDB) Close() {
// database, we don't have a destination
// to flush contents to nor do we want
// any data loss on invoking Close()
// See the discussion in https://github.com/tendermint/tmlibs/pull/56
// See the discussion in https://github.com/tendermint/tendermint/libs/pull/56
}
// Implements DB.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto"
protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
)
// Security defines how the client will talk to the gRPC server.
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"context"
"log"
grpcdb "github.com/tendermint/tmlibs/db/remotedb/grpcdb"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto"
grpcdb "github.com/tendermint/tendermint/libs/db/remotedb/grpcdb"
protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
)
func Example() {
+3 -3
View File
@@ -9,8 +9,8 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/tendermint/tmlibs/db"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto"
"github.com/tendermint/tendermint/libs/db"
protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
)
// ListenAndServe is a blocking function that sets up a gRPC based
@@ -58,7 +58,7 @@ var _ protodb.DBServer = (*server)(nil)
// * fsdb
// * memdB
// * leveldb
// See https://godoc.org/github.com/tendermint/tmlibs/db#DBBackendType
// See https://godoc.org/github.com/tendermint/tendermint/libs/db#DBBackendType
func (s *server) Init(ctx context.Context, in *protodb.Init) (*protodb.Entity, error) {
s.mu.Lock()
defer s.mu.Unlock()
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/tendermint/tmlibs/db"
"github.com/tendermint/tmlibs/db/remotedb/grpcdb"
protodb "github.com/tendermint/tmlibs/db/remotedb/proto"
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/db/remotedb/grpcdb"
protodb "github.com/tendermint/tendermint/libs/db/remotedb/proto"
)
type RemoteDB struct {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/tendermint/tmlibs/db/remotedb"
"github.com/tendermint/tmlibs/db/remotedb/grpcdb"
"github.com/tendermint/tendermint/libs/db/remotedb"
"github.com/tendermint/tendermint/libs/db/remotedb/grpcdb"
)
func TestRemoteDB(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ package events
import (
"sync"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
// Generic event data can be typed and registered with tendermint/go-amino
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
)
func TestVariousLevels(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"testing"
"github.com/go-logfmt/logfmt"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
)
func TestLoggerLogsItsErrors(t *testing.T) {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
kitlog "github.com/go-kit/kit/log"
"github.com/stretchr/testify/assert"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
)
func TestTMFmtLogger(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"github.com/pkg/errors"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
)
func TestTracingLogger(t *testing.T) {
+2 -2
View File
@@ -1,8 +1,8 @@
package merkle
import (
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/merkle/tmhash"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/merkle/tmhash"
)
type SimpleMap struct {
+1 -1
View File
@@ -25,7 +25,7 @@ For larger datasets, use IAVLTree.
package merkle
import (
"github.com/tendermint/tmlibs/merkle/tmhash"
"github.com/tendermint/tendermint/libs/merkle/tmhash"
)
func SimpleHashFromTwoHashes(left []byte, right []byte) []byte {
+2 -2
View File
@@ -3,8 +3,8 @@ package merkle
import (
"bytes"
cmn "github.com/tendermint/tmlibs/common"
. "github.com/tendermint/tmlibs/test"
cmn "github.com/tendermint/tendermint/libs/common"
. "github.com/tendermint/tendermint/libs/test"
"testing"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tendermint/tmlibs/merkle/tmhash"
"github.com/tendermint/tendermint/libs/merkle/tmhash"
)
func TestHash(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/pubsub"
"github.com/tendermint/tendermint/libs/pubsub/query"
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"errors"
"sync"
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
type operation int
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tmlibs/log"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/pubsub"
"github.com/tendermint/tendermint/libs/pubsub/query"
+1 -1
View File
@@ -1,7 +1,7 @@
package test
import (
cmn "github.com/tendermint/tmlibs/common"
cmn "github.com/tendermint/tendermint/libs/common"
)
// Contract: !bytes.Equal(input, output) && len(input) >= len(output)