// manifoldStart returns a unitassigner worker using the supplied APICaller. func manifoldStart(apiCaller base.APICaller) (worker.Worker, error) { facade := unitassigner.New(apiCaller) worker, err := New(facade) if err != nil { return nil, errors.Trace(err) } return worker, nil }
// UnitAssigner returns a version of the state that provides functionality // required by the unitassigner worker. func (st *state) UnitAssigner() unitassigner.API { return unitassigner.New(st) }