Skip to content
Snippets Groups Projects
Unverified Commit 3e207247 authored by Hans Moog's avatar Hans Moog Committed by GitHub
Browse files

Feat: updated to latest hive.go (#463)


* Feat: updated to latest hive.go

* Fix: fixed bugs related to api change

* Feat: bump integration tests

Co-authored-by: default avatarHans Moog <hm@mkjc.net>
parent 38830fdd
Branches
Tags
No related merge requests found
......@@ -11,7 +11,7 @@ require (
github.com/gobuffalo/packr/v2 v2.7.1
github.com/golang/protobuf v1.3.5
github.com/gorilla/websocket v1.4.1
github.com/iotaledger/hive.go v0.0.0-20200608165853-97365812038c
github.com/iotaledger/hive.go v0.0.0-20200610104211-d603429af242
github.com/iotaledger/iota.go v1.0.0-beta.14
github.com/labstack/echo v3.3.10+incompatible
github.com/labstack/gommon v0.3.0
......
......@@ -21,8 +21,8 @@ var (
)
func init() {
for name, status := range node.GetPlugins() {
onAddPlugin(name, status)
for name, plugin := range node.GetPlugins() {
onAddPlugin(name, plugin.Status)
}
node.Events.AddPlugin.Attach(events.NewClosure(onAddPlugin))
......
......@@ -59,12 +59,12 @@ func configure(_ *node.Plugin) {
func getInfo(c echo.Context) error {
var enabledPlugins []string
var disabledPlugins []string
for plugin, status := range node.GetPlugins() {
switch status {
for pluginName, plugin := range node.GetPlugins() {
switch plugin.Status {
case node.Disabled:
disabledPlugins = append(disabledPlugins, plugin)
disabledPlugins = append(disabledPlugins, pluginName)
case node.Enabled:
enabledPlugins = append(enabledPlugins, plugin)
enabledPlugins = append(enabledPlugins, pluginName)
default:
continue
}
......
......@@ -10,7 +10,7 @@ require (
github.com/docker/go-units v0.4.0 // indirect
github.com/drand/drand v0.8.1
github.com/iotaledger/goshimmer v0.1.3
github.com/iotaledger/hive.go v0.0.0-20200608165853-97365812038c
github.com/iotaledger/hive.go v0.0.0-20200610104211-d603429af242
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/stretchr/testify v1.5.1
)
......
......@@ -138,8 +138,8 @@ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/iotaledger/hive.go v0.0.0-20200608165853-97365812038c h1:092HC7xRUSHpoXoAz2oTNWzfHDMMu3tEZsg2RF131hA=
github.com/iotaledger/hive.go v0.0.0-20200608165853-97365812038c/go.mod h1:zwZhaE4ZeglpTrbmbwdnVPMI5XdRu2RmByi3Qn0ztmU=
github.com/iotaledger/hive.go v0.0.0-20200610104211-d603429af242 h1:uHMFmfrP6O6lp1lCHT6lpFwHFWYk77V0nUlGbhneQHI=
github.com/iotaledger/hive.go v0.0.0-20200610104211-d603429af242/go.mod h1:zwZhaE4ZeglpTrbmbwdnVPMI5XdRu2RmByi3Qn0ztmU=
github.com/iotaledger/iota.go v1.0.0-beta.9/go.mod h1:F6WBmYd98mVjAmmPVYhnxg8NNIWCjjH8VWT9qvv3Rc8=
github.com/iotaledger/iota.go v1.0.0-beta.14/go.mod h1:F6WBmYd98mVjAmmPVYhnxg8NNIWCjjH8VWT9qvv3Rc8=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment