code: func (sm *ServiceMap) filter(other ServiceMap) {
  	for svcPortName := range *sm {
  		// skip the delete for Update event.
  		if _, ok := other[svcPortName]; ok {
  			delete(*sm, svcPortName)
  		}
  	}
  }
docs: // filter filters out elements from ServiceMap base on given ports string sets.