From a4b5ef75d43470e8ead81da61a040ca0513bca7c Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Sat, 18 Jun 2016 13:39:59 +0200 Subject: [PATCH] Fix signature after cli vendor update. --- cmd/semtech-bridge/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/semtech-bridge/main.go b/cmd/semtech-bridge/main.go index 21c0c555..8b35be6a 100644 --- a/cmd/semtech-bridge/main.go +++ b/cmd/semtech-bridge/main.go @@ -16,7 +16,7 @@ import ( var version string // set by the compiler -func run(c *cli.Context) { +func run(c *cli.Context) error { log.SetLevel(log.Level(uint8(c.Int("log-level")))) pubsub, err := mqttpubsub.NewBackend(c.String("mqtt-server"), c.String("mqtt-username"), c.String("mqtt-password")) @@ -67,6 +67,7 @@ func run(c *cli.Context) { signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM) log.WithField("signal", <-sigChan).Info("signal received") log.Warning("shutting down server") + return nil } func main() {