diff --git a/internal/internal_worker.go b/internal/internal_worker.go index 06c8ed0b7..ff94b1943 100644 --- a/internal/internal_worker.go +++ b/internal/internal_worker.go @@ -29,7 +29,6 @@ import ( "encoding/hex" "errors" "fmt" - "go.uber.org/cadence/internal/common/debug" "io" "os" "reflect" @@ -40,6 +39,8 @@ import ( "sync/atomic" "time" + "go.uber.org/cadence/internal/common/debug" + "go.uber.org/cadence/internal/common/isolationgroup" "github.com/opentracing/opentracing-go" diff --git a/internal/internal_worker_base.go b/internal/internal_worker_base.go index 5ddfff6fe..d0fb9a310 100644 --- a/internal/internal_worker_base.go +++ b/internal/internal_worker_base.go @@ -27,13 +27,14 @@ import ( "context" "errors" "fmt" - "go.uber.org/cadence/internal/common/debug" "os" "runtime" "sync" "syscall" "time" + "go.uber.org/cadence/internal/common/debug" + "github.com/shirou/gopsutil/cpu" "github.com/uber-go/tally" "go.uber.org/zap" diff --git a/internal/internal_worker_test.go b/internal/internal_worker_test.go index 596505a4f..068f95f88 100644 --- a/internal/internal_worker_test.go +++ b/internal/internal_worker_test.go @@ -24,7 +24,6 @@ package internal import ( "context" "errors" - "go.uber.org/cadence/internal/common/debug" "os" "reflect" "runtime" @@ -32,6 +31,8 @@ import ( "testing" "time" + "go.uber.org/cadence/internal/common/debug" + "github.com/golang/mock/gomock" "github.com/opentracing/opentracing-go" "github.com/stretchr/testify/assert" diff --git a/internal/worker.go b/internal/worker.go index decd9f56d..448cf95ef 100644 --- a/internal/worker.go +++ b/internal/worker.go @@ -23,9 +23,10 @@ package internal import ( "context" - "go.uber.org/cadence/internal/common/debug" "time" + "go.uber.org/cadence/internal/common/debug" + "github.com/opentracing/opentracing-go" "github.com/uber-go/tally" "go.uber.org/zap"