mirror of
https://github.com/versity/scoutfs-go.git
synced 2026-08-02 04:26:01 +00:00
fix data waiters example for single pass
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user