code: func (sc *syncClient) run() error {
  	for {
  		select {
  		case <-sc.stopped:
  			<-sc.start
  			log.Infof("Starting sync client...")
  		default:
  			sc.runOnce()
  			select {
  			case <-time.After(5 * time.Second):
  			case <-sc.quit:
  				sc.stopped <- true
  			}
  		}
  	}
  }
docs: // run runs the synchronisation client.