diff --git a/packages/node/node.go b/packages/node/node.go index 84c461318db523c50b0887a861a6db8c64f8db34..af82862d9475302107932da07b82d2803364a653 100644 --- a/packages/node/node.go +++ b/packages/node/node.go @@ -1,9 +1,10 @@ package node import ( - "github.com/iotaledger/hive.go/parameter" "sync" + "github.com/iotaledger/hive.go/parameter" + "github.com/iotaledger/goshimmer/packages/daemon" ) diff --git a/packages/node/parameters.go b/packages/node/parameters.go index f1acb90c4d4f9cf573b1630d961274c3f5b27959..78862fea3bde0bbb1f48b1a0834d936dd5726470 100644 --- a/packages/node/parameters.go +++ b/packages/node/parameters.go @@ -1,7 +1,7 @@ package node import ( - "flag" + flag "github.com/spf13/pflag" ) const ( diff --git a/plugins/analysis/webinterface/httpserver/plugin.go b/plugins/analysis/webinterface/httpserver/plugin.go index b88ca23c05149ae926ac8c693b8dfdb50a98a275..a86fb7dffea3a4a3c139463c04123296f6bae981 100644 --- a/plugins/analysis/webinterface/httpserver/plugin.go +++ b/plugins/analysis/webinterface/httpserver/plugin.go @@ -1,6 +1,6 @@ package httpserver -import( +import ( "net/http" "time" diff --git a/plugins/autopeering/parameters/parameters.go b/plugins/autopeering/parameters/parameters.go index 12b9b402afb28005b23f0705b27d260abdff284f..9903d1db5deb74fd991604498e2738a5873f5fce 100644 --- a/plugins/autopeering/parameters/parameters.go +++ b/plugins/autopeering/parameters/parameters.go @@ -1,7 +1,7 @@ package parameters import ( - "flag" + flag "github.com/spf13/pflag" ) const ( diff --git a/plugins/autopeering/server/tcp/server.go b/plugins/autopeering/server/tcp/server.go index 5b9c2812484f6eb6387946b21348d7f1210b30cf..a5b839512a17860e13a620e6e3179ba8a4ef06b0 100644 --- a/plugins/autopeering/server/tcp/server.go +++ b/plugins/autopeering/server/tcp/server.go @@ -1,6 +1,9 @@ package tcp import ( + "math" + "net" + "github.com/iotaledger/goshimmer/packages/daemon" "github.com/iotaledger/goshimmer/packages/network" "github.com/iotaledger/goshimmer/packages/network/tcp" @@ -12,8 +15,6 @@ import ( "github.com/iotaledger/hive.go/events" "github.com/iotaledger/hive.go/parameter" "github.com/pkg/errors" - "math" - "net" ) var server = tcp.NewServer() diff --git a/plugins/cli/cli.go b/plugins/cli/cli.go index 0051c1a1d8b8bdcac9eebfa4f22bf2808dbd6aaa..3d5a872254c4c1b1d17b762bf522a38b2aafcfe2 100644 --- a/plugins/cli/cli.go +++ b/plugins/cli/cli.go @@ -1,14 +1,15 @@ package cli import ( - "flag" "fmt" - "github.com/iotaledger/hive.go/parameter" "os" "path/filepath" "sort" "strings" + "github.com/iotaledger/hive.go/parameter" + flag "github.com/spf13/pflag" + "github.com/iotaledger/goshimmer/packages/node" ) diff --git a/plugins/cli/plugin.go b/plugins/cli/plugin.go index bd77e2d5f450e4913ec7a3ea33760ed147b2f1d2..c7ac5908de2e11e44126b2750cc5dd65c3dcc784 100644 --- a/plugins/cli/plugin.go +++ b/plugins/cli/plugin.go @@ -1,11 +1,12 @@ package cli import ( - "flag" "fmt" - "github.com/iotaledger/hive.go/events" "strings" + "github.com/iotaledger/hive.go/events" + flag "github.com/spf13/pflag" + "github.com/iotaledger/goshimmer/packages/node" "github.com/iotaledger/hive.go/parameter" ) diff --git a/plugins/gossip/neighbors.go b/plugins/gossip/neighbors.go index 51c40c7ae67a266d599e584cce7e0578d8660d06..231076791620bf3a0e4a35c80af5b0493e81516f 100644 --- a/plugins/gossip/neighbors.go +++ b/plugins/gossip/neighbors.go @@ -1,6 +1,6 @@ package gossip -import( +import ( "math" "net" "strconv"