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

@@ -1,8 +1,6 @@
package executors
import (
"time"
)
import "time"
const defaultBulkTasks = 1000

View File

@@ -4,7 +4,7 @@ import (
"sync"
"time"
"zero/core/threading"
"github.com/tal-tech/go-zero/core/threading"
)
type DelayExecutor struct {

View File

@@ -3,8 +3,8 @@ package executors
import (
"time"
"zero/core/syncx"
"zero/core/timex"
"github.com/tal-tech/go-zero/core/syncx"
"github.com/tal-tech/go-zero/core/timex"
)
type LessExecutor struct {

View File

@@ -4,9 +4,8 @@ import (
"testing"
"time"
"zero/core/timex"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/timex"
)
func TestLessExecutor_DoOrDiscard(t *testing.T) {

View File

@@ -5,10 +5,10 @@ import (
"sync"
"time"
"zero/core/proc"
"zero/core/syncx"
"zero/core/threading"
"zero/core/timex"
"github.com/tal-tech/go-zero/core/proc"
"github.com/tal-tech/go-zero/core/syncx"
"github.com/tal-tech/go-zero/core/threading"
"github.com/tal-tech/go-zero/core/timex"
)
const idleRound = 10

View File

@@ -7,9 +7,8 @@ import (
"testing"
"time"
"zero/core/timex"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/timex"
)
const threshold = 10