20
20
// NewRelationer creates a new Relationer. The unit will not join the
21
21
// relation until explicitly requested.
22
func NewRelationer(ru *state.RelationUnit, dir *relation.StateDir, hooks chan<- hook.Info) *Relationer {
22
func NewRelationer(ru *state.RelationUnit, dir *relation.StateDir, hooks chan<- hook.Info) (*Relationer, error) {
24
24
ctx: NewContextRelation(ru, dir.State().Members),
31
36
// Context returns the ContextRelation associated with r.