From 60e3ea978fa4aa30ef35c91389f7cf89f408165c Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 18 Nov 2021 19:18:54 +0300 Subject: [PATCH] [#971] *: Group all 3rd parties imports Signed-off-by: Pavel Karpy --- pkg/innerring/processors/container/process_container.go | 3 +-- pkg/innerring/processors/governance/process_update.go | 3 +-- pkg/innerring/processors/neofs/process_bind.go | 3 +-- pkg/morph/client/balance/transfer.go | 2 +- pkg/morph/client/neofsid/wrapper/keys.go | 3 +-- pkg/morph/client/netmap/wrapper/config.go | 3 +-- pkg/morph/event/balance/lock.go | 1 - pkg/morph/event/container/delete.go | 3 +-- pkg/morph/event/container/estimates.go | 1 - pkg/morph/event/container/put.go | 3 +-- pkg/morph/event/netmap/update_peer.go | 3 +-- 11 files changed, 9 insertions(+), 19 deletions(-) diff --git a/pkg/innerring/processors/container/process_container.go b/pkg/innerring/processors/container/process_container.go index 244ebf239..92b182359 100644 --- a/pkg/innerring/processors/container/process_container.go +++ b/pkg/innerring/processors/container/process_container.go @@ -6,12 +6,11 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neofs-node/pkg/morph/client/container/wrapper" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/network/payload" "github.com/nspcc-dev/neofs-api-go/v2/refs" "github.com/nspcc-dev/neofs-node/pkg/core/container" + "github.com/nspcc-dev/neofs-node/pkg/morph/client/container/wrapper" neofsid "github.com/nspcc-dev/neofs-node/pkg/morph/client/neofsid/wrapper" "github.com/nspcc-dev/neofs-node/pkg/morph/event" containerEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/container" diff --git a/pkg/innerring/processors/governance/process_update.go b/pkg/innerring/processors/governance/process_update.go index bd787c14e..180aef627 100644 --- a/pkg/innerring/processors/governance/process_update.go +++ b/pkg/innerring/processors/governance/process_update.go @@ -6,12 +6,11 @@ import ( "sort" "strings" - "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap/wrapper" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neofs-node/pkg/morph/client" neofscontract "github.com/nspcc-dev/neofs-node/pkg/morph/client/neofs/wrapper" + "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap/wrapper" "go.uber.org/zap" ) diff --git a/pkg/innerring/processors/neofs/process_bind.go b/pkg/innerring/processors/neofs/process_bind.go index 0932c70b0..154007a2a 100644 --- a/pkg/innerring/processors/neofs/process_bind.go +++ b/pkg/innerring/processors/neofs/process_bind.go @@ -4,12 +4,11 @@ import ( "crypto/elliptic" "fmt" - neofsid "github.com/nspcc-dev/neofs-node/pkg/morph/client/neofsid/wrapper" - "github.com/mr-tron/base58" "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/util" + neofsid "github.com/nspcc-dev/neofs-node/pkg/morph/client/neofsid/wrapper" "github.com/nspcc-dev/neofs-node/pkg/morph/event/neofs" "go.uber.org/zap" ) diff --git a/pkg/morph/client/balance/transfer.go b/pkg/morph/client/balance/transfer.go index 6df858958..93b6020bb 100644 --- a/pkg/morph/client/balance/transfer.go +++ b/pkg/morph/client/balance/transfer.go @@ -115,7 +115,7 @@ func (b *BurnPrm) SetAmount(amount int64) { b.amount = amount } -// SetID sets ID +// SetID sets ID. func (b *BurnPrm) SetID(id []byte) { b.id = id } diff --git a/pkg/morph/client/neofsid/wrapper/keys.go b/pkg/morph/client/neofsid/wrapper/keys.go index 7fda1654b..42d7b10fb 100644 --- a/pkg/morph/client/neofsid/wrapper/keys.go +++ b/pkg/morph/client/neofsid/wrapper/keys.go @@ -4,9 +4,8 @@ import ( "crypto/elliptic" "fmt" - "github.com/nspcc-dev/neofs-node/pkg/morph/client" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/client/neofsid" "github.com/nspcc-dev/neofs-sdk-go/owner" ) diff --git a/pkg/morph/client/netmap/wrapper/config.go b/pkg/morph/client/netmap/wrapper/config.go index ba95b9a4a..eac9df7a3 100644 --- a/pkg/morph/client/netmap/wrapper/config.go +++ b/pkg/morph/client/netmap/wrapper/config.go @@ -4,9 +4,8 @@ import ( "fmt" "strconv" - "github.com/nspcc-dev/neofs-node/pkg/morph/client" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" + "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap" ) diff --git a/pkg/morph/event/balance/lock.go b/pkg/morph/event/balance/lock.go index 0fd122e12..1f0695426 100644 --- a/pkg/morph/event/balance/lock.go +++ b/pkg/morph/event/balance/lock.go @@ -4,7 +4,6 @@ import ( "fmt" "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" - "github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/event" diff --git a/pkg/morph/event/container/delete.go b/pkg/morph/event/container/delete.go index 4ce7b0baa..1fc977f76 100644 --- a/pkg/morph/event/container/delete.go +++ b/pkg/morph/event/container/delete.go @@ -3,9 +3,8 @@ package container import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/event" ) diff --git a/pkg/morph/event/container/estimates.go b/pkg/morph/event/container/estimates.go index a5b27a735..9d5468706 100644 --- a/pkg/morph/event/container/estimates.go +++ b/pkg/morph/event/container/estimates.go @@ -4,7 +4,6 @@ import ( "fmt" "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/event" diff --git a/pkg/morph/event/container/put.go b/pkg/morph/event/container/put.go index 21b3ef56b..348c8d535 100644 --- a/pkg/morph/event/container/put.go +++ b/pkg/morph/event/container/put.go @@ -3,9 +3,8 @@ package container import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/event" ) diff --git a/pkg/morph/event/netmap/update_peer.go b/pkg/morph/event/netmap/update_peer.go index 6e7fa7395..40911b5e7 100644 --- a/pkg/morph/event/netmap/update_peer.go +++ b/pkg/morph/event/netmap/update_peer.go @@ -4,10 +4,9 @@ import ( "crypto/elliptic" "fmt" - "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/nspcc-dev/neo-go/pkg/rpc/response/result/subscriptions" v2netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap" "github.com/nspcc-dev/neofs-node/pkg/morph/client" "github.com/nspcc-dev/neofs-node/pkg/morph/event"