From 342a2d5754d5014cdda702465d7f0fa51ad18484 Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Mon, 27 Aug 2018 10:47:13 -0600 Subject: [PATCH] Resolve compilation error in frontend (#32) Fixes #31 --- src/frontend/main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/frontend/main.go b/src/frontend/main.go index f59f759..c3dd3c7 100644 --- a/src/frontend/main.go +++ b/src/frontend/main.go @@ -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)