func NewRemoteRelationCompatWatcher(
	caller base.APICaller,
	result params.RelationUnitsWatchResult,
	relationToken string,
	appToken string,
	getSettings SettingsGetter,
) RemoteRelationWatcher {
	w := &remoteRelationCompatWatcher{
		caller:                 caller,
		relationUnitsWatcherId: result.RelationUnitsWatcherId,
		relationToken:          relationToken,
		appToken:               appToken,
		getSettings:            getSettings,
		out:                    make(chan params.RemoteRelationChangeEvent),
	}
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
// NewRemoteRelationCompatWatcher returns a RemoteRelationWatcher
// based on a server-side RelationUnitsWatcher.
NewRemoteRelationCompatWatcher returns a RemoteRelationWatcher
based on a server-side RelationUnitsWatcher.
// NewRemoteRelationCompatWatcher returns a RemoteRelationWatcher // based on a server - side RelationUnitsWatcher .
func NewRemoteRelationCompatWatcher(
	caller base.APICaller,
	result params.RelationUnitsWatchResult,
	relationToken string,
	appToken string,
	getSettings SettingsGetter,
) RemoteRelationWatcher {
	w := &remoteRelationCompatWatcher{
		caller:                 caller,
		relationUnitsWatcherId: result.RelationUnitsWatcherId,
		relationToken:          relationToken,
		appToken:               appToken,
		getSettings:            getSettings,
		out:                    make(chan params.RemoteRelationChangeEvent),
	}
	w.tomb.Go(func() error {
		return w.loop(result.Changes)
	})
	return w
}
func NewRemoteRelationCompatWatcher ( caller base . APICaller , result params . RelationUnitsWatchResult , relationToken string , appToken string , getSettings SettingsGetter , ) RemoteRelationWatcher { w := & remoteRelationCompatWatcher { caller : caller , relationUnitsWatcherId : result . RelationUnitsWatcherId , relationToken : relationToken , appToken : appToken , getSettings : getSettings , out : make ( chan params . RemoteRelationChangeEvent ) , } w . tomb . Go ( func ( ) error { return w . loop ( result . Changes ) } ) return w }
NewRemoteRelationCompatWatcher returns a RemoteRelationWatcher
based on a server-side RelationUnitsWatcher.
NewRemoteRelationCompatWatcher returns a RemoteRelationWatcher based on a server - side RelationUnitsWatcher .