The library only provided WatchInstance function that returned a watch of child type. But child type watches are triggered by group member subscription updates, so WatchRegistration function was introduced to allow watching member subscription updates.
Besides:
There was no way to update an existing subscription so clients had to make a Deregister/Register sequence, that resulted in extra watch trigger. So UpdateRegistration function was added to rectify this deficiency.
A redundant call of Exists was removed in a couple of methods. It seems better to just make whatever call we need and check for ErrNoNode error instead.
The library only provided
WatchInstance
function that returned a watch of child type. But child type watches are triggered by group member subscription updates, soWatchRegistration
function was introduced to allow watching member subscription updates.Besides:
Deregister
/Register
sequence, that resulted in extra watch trigger. SoUpdateRegistration
function was added to rectify this deficiency.Exists
was removed in a couple of methods. It seems better to just make whatever call we need and check forErrNoNode
error instead.