func (c *MemStore) SetCurrentController(name string) error {
	c.mu.Lock()
	defer c.mu.Unlock()

	if err := ValidateControllerName(name); err != nil {
		return err
	}
	if _, ok := c.Controllers[name]; !ok {
		return errors.NotFoundf("controller %s", name)
	}
	c.CurrentControllerName = name
	return nil
}
// SetCurrentController implements ControllerUpdater.SetCurrentController
SetCurrentController implements ControllerUpdater.SetCurrentController
// SetCurrentController implements ControllerUpdater . SetCurrentController
func (c *MemStore) SetCurrentController(name string) error {
	c.mu.Lock()
	defer c.mu.Unlock()
	if err := ValidateControllerName(name); err != nil {
		return err
	}
	if _, ok := c.Controllers[name]; !ok {
		return errors.NotFoundf("controller %s", name)
	}
	c.CurrentControllerName = name
	return nil
}
func ( c * MemStore ) SetCurrentController ( name string ) error { c . mu . Lock ( ) defer c . mu . Unlock ( ) if err := ValidateControllerName ( name ) ; err != nil { return err } if _ , ok := c . Controllers [ name ] ; ! ok { return errors . NotFoundf ( " " , name ) } c . CurrentControllerName = name return nil }
SetCurrentController implements ControllerUpdater.SetCurrentController
SetCurrentController implements ControllerUpdater . SetCurrentController