demo/digitalocean: allow stale queries

This commit is contained in:
Armon Dadgar 2015-09-27 14:12:23 -07:00
parent 36f6d81671
commit ca839aa2de
1 changed files with 2 additions and 1 deletions

View File

@ -56,10 +56,11 @@ func main() {
last := 0
fmt.Printf("benchmarking %d allocations\n", total)
opts := &api.QueryOptions{AllowStale: true}
for {
time.Sleep(100 * time.Millisecond)
allocs, _, err := allocClient.List(nil)
allocs, _, err := allocClient.List(opts)
if err != nil {
fmt.Println(err.Error())