Resolve compilation error in frontend (#32)

Fixes #31
This commit is contained in:
Eno Compton 2018-08-27 10:47:13 -06:00 committed by Ahmet Alp Balkan
parent 7f2ecfea9e
commit 342a2d5754

View file

@ -17,7 +17,6 @@ package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"time"
@ -140,12 +139,12 @@ func initStats(log logrus.FieldLogger, exporter *stackdriver.Exporter) {
if err := view.Register(ochttp.DefaultServerViews...); err != nil {
log.Warn("Error registering http default server views")
} else {
log.Info("Registered http default server views");
log.Info("Registered http default server views")
}
if err := view.Register(ocgrpc.DefaultClientViews...); err != nil {
log.Warn("Error registering grpc default client views")
} else {
log.Info("Registered grpc default client views");
log.Info("Registered grpc default client views")
}
}
@ -165,7 +164,7 @@ func initTracing(log logrus.FieldLogger) {
log.Info("registered stackdriver tracing")
// Register the views to collect server stats.
initStats(exporter)
initStats(log, exporter)
return
}
d := time.Second * 20 * time.Duration(i)