From 486ffebedd41ff3b359c2b9bab7bfe678e8e2dfd Mon Sep 17 00:00:00 2001 From: Karandashov Daniil Date: Mon, 29 Aug 2022 22:40:19 +0300 Subject: [PATCH] Delete unused param (#935) --- cmd/yggdrasil/main.go | 2 +- src/admin/admin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/yggdrasil/main.go b/cmd/yggdrasil/main.go index 5d1c76ac..826df007 100644 --- a/cmd/yggdrasil/main.go +++ b/cmd/yggdrasil/main.go @@ -366,7 +366,7 @@ func run(args yggArgs, ctx context.Context, done chan struct{}) { } else if err := n.admin.Start(); err != nil { logger.Errorln("An error occurred starting admin socket:", err) } - n.admin.SetupAdminHandlers(n.admin) + n.admin.SetupAdminHandlers() // Start the multicast interface if err := n.multicast.Init(n.core, cfg, logger, nil); err != nil { logger.Errorln("An error occurred initialising multicast:", err) diff --git a/src/admin/admin.go b/src/admin/admin.go index 56164533..c7c0f148 100644 --- a/src/admin/admin.go +++ b/src/admin/admin.go @@ -86,7 +86,7 @@ func (a *AdminSocket) Init(c *core.Core, nc *config.NodeConfig, log *log.Logger, return a.core.SetAdmin(a) } -func (a *AdminSocket) SetupAdminHandlers(na *AdminSocket) { +func (a *AdminSocket) SetupAdminHandlers() { _ = a.AddHandler("getSelf", []string{}, func(in json.RawMessage) (interface{}, error) { req := &GetSelfRequest{} res := &GetSelfResponse{}