             ^Long                 channel-timeout       (get-in config [:ok :hasta-la-vista :channel-timeout  ]) 
                                                                                                                   ]
 
-      (log/info (client/get-available-servers client))
+      (log/info (client/get-available-servers client-conn))
 
       ;; creating N async threads
       (dotimes [i thread-count]

      ;; send in all of the ids batch-size amount a time
      (thread
        (Thread/sleep 100)
        (doseq [r (client/lazy-query client design-document-name view-name query-options batch-size)]
          (let [ids (map client/view-id r)]
            (blocking-producer work-chan ids))))

      ;; wait till the last message is read in the main thread
      (while true 

            ^ManyToManyChannel    stat-chan             (chan)
            ^ManyToManyChannel    work-chan             (chan)
            ^PersistentHashMap    client-config         (get-in config [:ok :couchbase-client])
            ^CouchbaseCljClient   client-conn           (connect client-config)
            ^PersistentArrayMap   view-config           (get-in config [:ok :couchbase-view])
            ^String               design-document-name  (:design-document-name view-config)
            ^String               view-name             (:view-name view-config)
