def setCurrentSeqValue()

in migrator/src/main/scala/com/gu/pathmanager/PathManagerConnection.scala [32:40]


  def setCurrentSeqValue(v: Long) {
    val body = new FormEncodingBuilder().add("val", s"$v").build()
    val req = new Request.Builder().url(pathManagerBaseUrl + "updateIdSeq").post(body).build()
    val resp = httpclient.newCall(req).execute()

    if (!resp.isSuccessful) {
      throw new Exception(s"failed to update sequence to $v")
    }
  }