   (:require [clj-http.client :as client]
             [cheshire.core :as json]
             [cmr.ingest.config :as config]
-            [cmr.common.config :as cfg]
+            [cmr.common.config :as cfg :refer [defconfig]]
             [cmr.common.log :as log :refer (debug info warn error)]
             [cmr.common.services.errors :as errors]
             [cmr.common.services.health-helper :as hh]

                delete-url status response)))
    response))

(def ^:const publish-timeout-ms
  "Number of milliseconds to wait for a publish request to be confirmed before considering the
  request timed out."
  60000)

(defn- put-message-on-queue
  "Put an index operation on the message queue. Throws a service unavailable error if the message

  period has expired. By retrying, routine maintenance such as restarting the RabbitMQ server
  will not result in any ingest errors returned to the provider."
  ([context msg]
   (put-message-on-queue context msg (publish-queue-timeout-ms)))
  ([context msg timeout-ms]
   (let [queue-broker (get-in context [:system :queue-broker])
         queue-name (config/index-queue-name)
