From 3ff29628192c252905cfa22c4c8bff2871b5c989 Mon Sep 17 00:00:00 2001 From: Ketsia Date: Mon, 19 Aug 2024 15:36:21 +0200 Subject: [PATCH] lint --- internal/internal_worker.go | 3 ++- internal/internal_worker_base.go | 3 ++- internal/internal_worker_test.go | 3 ++- internal/worker.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) 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"