Code review comment for lp:~rogpeppe/gozk/comments-and-time

Revision history for this message
Roger Peppe (rogpeppe) wrote :

PTAL

https://codereview.appspot.com/5650075/diff/1/zk.go
File zk.go (right):

https://codereview.appspot.com/5650075/diff/1/zk.go#newcode97
zk.go:97: // event.
On 2012/02/13 13:53:57, niemeyer wrote:
> This is extremely redundant. Please use something along these lines
instead:

> type Event struct {
> Type int // One of the EVENT_* constants
> Path string // Node path for non-session events
> State int // One of the STATE_* constants
> }

> Note that State exists for non-session events also.

Done.

https://codereview.appspot.com/5650075/diff/1/zk.go#newcode347
zk.go:347: // CVersion returns the number of changes to the children of
the node.
On 2012/02/13 13:53:57, niemeyer wrote:
> This needs clarification. Will a change in a child's data increase
this version
> too?

Done.

https://codereview.appspot.com/5650075/diff/1/zk.go#newcode368
zk.go:368: // NumChildren returns the number of children of the znode.
On 2012/02/13 13:53:57, niemeyer wrote:
> s/znode/node/, as everywhere else.

Done.

https://codereview.appspot.com/5650075/diff/1/zk_test.go
File zk_test.go (right):

https://codereview.appspot.com/5650075/diff/1/zk_test.go#newcode187
zk_test.go:187: if dt < 0 || dt > maxdt {
On 2012/02/13 13:53:57, niemeyer wrote:
> if t.Before(t0) || t.After(t1) {

doh!

https://codereview.appspot.com/5650075/

« Back to merge proposal