enable cache for build, closes #8 (#12)

* enable cache for build, closes #8
* goimports
* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-20 15:23:41 +03:00
committed by GitHub
parent 98ba3b2788
commit 199ff66bd4
37 changed files with 62 additions and 47 deletions

View File

@@ -5,9 +5,9 @@ import (
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
"github.com/unistack-org/micro/v3/store"
"github.com/unistack-org/micro/v3/store/file"
"github.com/stretchr/testify/assert"
)
func cleanup(db string, s store.Store) {

View File

@@ -11,9 +11,9 @@ import (
"time"
"github.com/lib/pq"
"github.com/pkg/errors"
"github.com/unistack-org/micro/v3/logger"
"github.com/unistack-org/micro/v3/store"
"github.com/pkg/errors"
)
// DefaultDatabase is the namespace that the sql store

View File

@@ -3,6 +3,7 @@ package cockroach
import (
"database/sql"
"fmt"
"os"
"testing"
"time"
@@ -11,6 +12,9 @@ import (
)
func TestSQL(t *testing.T) {
if len(os.Getenv("IN_TRAVIS_CI")) > 0 {
t.Skip()
}
connection := fmt.Sprintf(
"host=%s port=%d user=%s sslmode=disable dbname=%s",
"localhost",

View File

@@ -38,11 +38,6 @@ type fileStore struct {
dir string
}
type fileHandle struct {
key string
db *bolt.DB
}
// record stored by us
type record struct {
Key string

View File

@@ -7,9 +7,9 @@ import (
"strings"
"time"
"github.com/unistack-org/micro/v3/store"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
"github.com/unistack-org/micro/v3/store"
)
// NewStore returns a memory store