(cl *doozer.Conn, path string)
| 38 | |
| 39 | |
| 40 | func waitFor(cl *doozer.Conn, path string) { |
| 41 | var rev int64 |
| 42 | for { |
| 43 | ev, err := cl.Wait(path, rev) |
| 44 | if err != nil { |
| 45 | panic(err) |
| 46 | } |
| 47 | if ev.IsSet() && len(ev.Body) > 0 { |
| 48 | break |
| 49 | } |
| 50 | rev = ev.Rev + 1 |
| 51 | } |
| 52 | } |
no test coverage detected