code: func Connect(url string) {
  	if dbSession != nil {
  		return
  	}
  
  	for {
  		err := initializeDB(url)
  		if err == nil {
  			break
  		}
  		log.Debugf("Failed to connect to DB (%s), retrying in 5 seconds...", url)
  		time.Sleep(5 * time.Second)
  	}
  
  	log.Info("Initialized mongo connection")
  }
docs: // Connect ensures a mongo DB connection is initialized.