Skip to content

Commit

Permalink
Fix signature after cli vendor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Jun 19, 2016
1 parent 2d9c613 commit a4b5ef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/semtech-bridge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit a4b5ef7

Please sign in to comment.