Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Remove the use of deprecated api view.RegisterExporter in example. #16

Merged
merged 1 commit into from
Dec 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down