update package reference

This commit is contained in:
kevin
2020-08-08 16:40:10 +08:00
parent d19d25c72f
commit 0a7e0cce77
377 changed files with 881 additions and 1423 deletions

View File

@@ -3,11 +3,10 @@ package redis
import (
"strings"
"zero/core/logx"
"zero/core/mapping"
"zero/core/timex"
red "github.com/go-redis/redis"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/mapping"
"github.com/tal-tech/go-zero/core/timex"
)
func process(proc func(red.Cmder) error) func(red.Cmder) error {

View File

@@ -6,10 +6,9 @@ import (
"strconv"
"time"
"zero/core/breaker"
"zero/core/mapping"
red "github.com/go-redis/redis"
"github.com/tal-tech/go-zero/core/breaker"
"github.com/tal-tech/go-zero/core/mapping"
)
const (

View File

@@ -3,9 +3,8 @@ package redis
import (
"fmt"
"zero/core/logx"
red "github.com/go-redis/redis"
"github.com/tal-tech/go-zero/core/logx"
)
type ClosableNode interface {

View File

@@ -3,9 +3,8 @@ package redis
import (
"io"
"zero/core/syncx"
red "github.com/go-redis/redis"
"github.com/tal-tech/go-zero/core/syncx"
)
const (

View File

@@ -3,9 +3,8 @@ package redis
import (
"io"
"zero/core/syncx"
red "github.com/go-redis/redis"
"github.com/tal-tech/go-zero/core/syncx"
)
var clusterManager = syncx.NewResourceManager()

View File

@@ -6,9 +6,8 @@ import (
"sync/atomic"
"time"
"zero/core/logx"
red "github.com/go-redis/redis"
"github.com/tal-tech/go-zero/core/logx"
)
const (

View File

@@ -3,9 +3,8 @@ package redis
import (
"testing"
"zero/core/stringx"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stringx"
)
func TestRedisLock(t *testing.T) {