From e6ee65440d6835523d8f05a5baa174a0056f160f Mon Sep 17 00:00:00 2001 From: George Date: Tue, 1 Nov 2022 04:52:39 -0400 Subject: [PATCH] fix linter errors --- cmd/yggdrasil/main.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cmd/yggdrasil/main.go b/cmd/yggdrasil/main.go index a00c0ad..24459fe 100644 --- a/cmd/yggdrasil/main.go +++ b/cmd/yggdrasil/main.go @@ -387,12 +387,16 @@ func run(args yggArgs, ctx context.Context) { popuraConfig.Meshname.Enable = args.meshnameenable popuraConfig.Meshname.Listen = args.meshnamelisten - n.meshname.Init(n.core, cfg, popuraConfig, logger, nil) - n.meshname.Start() + _ = n.meshname.Init(n.core, cfg, popuraConfig, logger, nil) + if err = n.meshname.Start(); err != nil { + panic(err) + } popuraConfig.Autopeering.Enable = args.autopeer - n.autopeering.Init(n.core, cfg, popuraConfig, logger, nil) - n.autopeering.Start() + _ = n.autopeering.Init(n.core, cfg, popuraConfig, logger, nil) + if err = n.autopeering.Start(); err != nil { + panic(err) + } } // Make some nice output that tells us what our IPv6 address and subnet are.