Skip to content

Commit

Permalink
gofmt cmd/
Browse files Browse the repository at this point in the history
  • Loading branch information
oxplot committed May 21, 2020
1 parent 7b5796b commit 8d0c1e0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cmd/mqtt2prometheus.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package main

import (
"flag"
"fmt"
"log"
"net/http"
"os"
"flag"

"github.com/eclipse/paho.mqtt.golang"
"github.com/hikhvar/mqtt2prometheus/pkg/metrics"
"github.com/hikhvar/mqtt2prometheus/pkg/mqttclient"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"fmt"

"github.com/hikhvar/mqtt2prometheus/pkg/config"
"github.com/hikhvar/mqtt2prometheus/pkg/metrics"
"github.com/hikhvar/mqtt2prometheus/pkg/mqttclient"
)

var (
Expand Down Expand Up @@ -51,7 +53,7 @@ func main() {
collector := metrics.NewCollector(cfg.Cache.Timeout, cfg.Metrics)
ingest := metrics.NewIngest(collector, cfg.Metrics)

errorChan := make(chan error,1)
errorChan := make(chan error, 1)

err = mqttclient.Subscribe(mqttClientOptions, mqttclient.SubscribeOptions{
Topic: cfg.MQTT.TopicPath + "/+",
Expand Down

0 comments on commit 8d0c1e0

Please sign in to comment.