func (w *Watcher) add(d *structs.Deployment) error {
	w.l.Lock()
	defer w.l.Unlock()
	_, err := w.addLocked(d)
	return err
}
// add adds a deployment to the watch list
add adds a deployment to the watch list
// add adds a deployment to the watch list
func (w *Watcher) add(d *structs.Deployment) error {
	w.l.Lock()
	defer w.l.Unlock()
	_, err := w.addLocked(d)
	return err
}
func ( w * Watcher ) add ( d * structs . Deployment ) error { w . l . Lock ( ) defer w . l . Unlock ( ) _ , err := w . addLocked ( d ) return err }
add adds a deployment to the watch list
add adds a deployment to the watch list