Skip to content

Commit

Permalink
Remove calls to destroy on ViewManager (influxdata#5557)
Browse files Browse the repository at this point in the history
  • Loading branch information
prydin authored and otherpirate committed Mar 15, 2019
1 parent b4c1dcb commit 093d50c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/inputs/vsphere/finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func (f *Finder) descend(ctx context.Context, root types.ManagedObjectReference,
}

m := view.NewManager(f.client.Client.Client)
defer m.Destroy(ctx)
v, err := m.CreateContainerView(ctx, root, ct, false)
if err != nil {
return err
Expand Down

0 comments on commit 093d50c

Please sign in to comment.