lib: examples: Update to most recent API

At some point in the past the API changed. Fixed now.
This commit is contained in:
James Shubin
2017-04-10 03:09:00 -04:00
parent 525a1e8140
commit 66d9c7091c
4 changed files with 12 additions and 18 deletions

View File

@@ -14,8 +14,6 @@ import (
mgmt "github.com/purpleidea/mgmt/lib"
"github.com/purpleidea/mgmt/pgraph"
"github.com/purpleidea/mgmt/resources"
"golang.org/x/time/rate"
)
// MyGAPI implements the main GAPI interface.
@@ -61,10 +59,7 @@ func (obj *MyGAPI) Graph() (*pgraph.Graph, error) {
g := pgraph.NewGraph(obj.Name)
// FIXME: these are being specified temporarily until it's the default!
metaparams := resources.MetaParams{
Limit: rate.Inf,
Burst: 0,
}
metaparams := resources.DefaultMetaParams
content := "Delete me to trigger a notification!\n"
f0 := &resources.FileRes{