fix data waiters example for single pass

This commit is contained in:
Ben McClelland
2020-06-09 14:31:02 -07:00
parent 25da776633
commit ce557256f7
+1 -3
View File
@@ -10,7 +10,6 @@ import (
"fmt"
"log"
"os"
"time"
"github.com/versity/scoutfs-go"
)
@@ -35,8 +34,7 @@ func main() {
log.Fatalf("next(): %v", err)
}
if ents == nil {
time.Sleep(time.Second)
continue
break
}
for _, ent := range ents {
log.Printf("%+v", ent)