From 6151c48ac7fa526f6a321765b01861ad5f713168 Mon Sep 17 00:00:00 2001 From: rghetia Date: Tue, 17 Dec 2019 20:23:59 -0800 Subject: [PATCH] Remove the use of deprecated api view.RegisterExporter in example. (#16) --- example/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/example/main.go b/example/main.go index cceb02b..3291d71 100644 --- a/example/main.go +++ b/example/main.go @@ -42,7 +42,6 @@ func main() { if err != nil { log.Fatal(err) } - view.RegisterExporter(exporter) // Create view to see the number of processed videos cumulatively. // Create view to see the amount of video processed @@ -65,9 +64,6 @@ func main() { log.Fatalf("Cannot register the view: %v", err) } - // Set reporting period to report data at every second. - view.SetReportingPeriod(1 * time.Second) - // Record some data points... go func() { for {