demo/digitalocean: allow stale queries

This commit is contained in:
Armon Dadgar
2015-09-27 14:12:23 -07:00
parent 37971e2d8c
commit cda7d8f397

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())