From 6ccc44a1ee02a6776e52a866606442707f065d64 Mon Sep 17 00:00:00 2001 From: xyctruth <398041993@qq.com> Date: Mon, 21 Feb 2022 18:38:18 +0800 Subject: [PATCH] golangci lint --- dtmsvr/trans_status.go | 2 +- dtmsvr/trans_type_msg.go | 2 +- test/store_test.go | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dtmsvr/trans_status.go b/dtmsvr/trans_status.go index 8722e7f..6546e06 100644 --- a/dtmsvr/trans_status.go +++ b/dtmsvr/trans_status.go @@ -9,7 +9,6 @@ package dtmsvr import ( "errors" "fmt" - "github.com/dtm-labs/dtm/dtmutil" "strings" "time" @@ -18,6 +17,7 @@ import ( "github.com/dtm-labs/dtm/dtmcli/logger" "github.com/dtm-labs/dtm/dtmgrpc" "github.com/dtm-labs/dtm/dtmgrpc/dtmgimp" + "github.com/dtm-labs/dtm/dtmutil" "github.com/dtm-labs/dtmdriver" "google.golang.org/grpc/metadata" ) diff --git a/dtmsvr/trans_type_msg.go b/dtmsvr/trans_type_msg.go index fd386c6..3a10196 100644 --- a/dtmsvr/trans_type_msg.go +++ b/dtmsvr/trans_type_msg.go @@ -9,9 +9,9 @@ package dtmsvr import ( "errors" "fmt" - "github.com/dtm-labs/dtm/dtmcli/dtmimp" "github.com/dtm-labs/dtm/dtmcli" + "github.com/dtm-labs/dtm/dtmcli/dtmimp" "github.com/dtm-labs/dtm/dtmcli/logger" ) diff --git a/test/store_test.go b/test/store_test.go index 2e64397..46869e0 100644 --- a/test/store_test.go +++ b/test/store_test.go @@ -1,15 +1,14 @@ package test import ( - "github.com/dtm-labs/dtm/dtmutil" "testing" "time" - "github.com/stretchr/testify/assert" - "github.com/dtm-labs/dtm/dtmcli/dtmimp" "github.com/dtm-labs/dtm/dtmsvr/storage" "github.com/dtm-labs/dtm/dtmsvr/storage/registry" + "github.com/dtm-labs/dtm/dtmutil" + "github.com/stretchr/testify/assert" ) func initTransGlobal(gid string) (*storage.TransGlobalStore, storage.Store) {