code: func (s *awsIPs) updater() {
  	defer close(s.updaterStopChan)
  	for {
  		time.Sleep(s.updateFrequency)
  		select {
  		case <-s.updaterStopChan:
  			dcontext.GetLogger(context.Background()).Info("aws ip updater received stop signal")
  			return
  		default:
  			err := s.tryUpdate()
  			if err != nil {
  				dcontext.GetLogger(context.Background()).WithError(err).Error("git  AWS IP")
  			}
  		}
  	}
  }
docs: // This function is meant to be run in a background goroutine.
  // It will periodically update the ips from aws.