Browse Source

golangci lint

pull/223/head
xyctruth 4 years ago
parent
commit
6ccc44a1ee
  1. 2
      dtmsvr/trans_status.go
  2. 2
      dtmsvr/trans_type_msg.go
  3. 5
      test/store_test.go

2
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"
)

2
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"
)

5
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) {

Loading…
Cancel
Save