code: func parseWait(resp http.ResponseWriter, req *http.Request, b *structs.QueryOptions) bool {
  	query := req.URL.Query()
  	if wait := query.Get("wait"); wait != "" {
  		dur, err := time.ParseDuration(wait)
  		if err != nil {
  			resp.WriteHeader(http.StatusBadRequest)
  			fmt.Fprint(resp, "Invalid wait time")
  			return true
  		}
  		b.MaxQueryTime = dur
  	}
  	if idx := query.Get("index"); idx != "" {
  		index, err := strconv.ParseUint(idx, 10, 64)
  		if err != nil {
  			resp.WriteHeader(http.StatusBadRequest)
  			fmt.Fprint(resp, "Invalid index")
  			return true
  		}
  		b.MinQueryIndex = index
  	}
  	return false
  }
docs: // parseWait is used to parse the ?wait and ?index query params
  // Returns true on error