                               key-name
                               (:read rw)
                               (:write rw))]
-    (duragent* init (:error-handler rw) make-backend)))
+    (duragent* init meta (:error-handler rw) make-backend)))

            backed-by))

(defmethod duragent :local-file
  [_ & {:keys [file-path init rw]
        :or {rw default-file-rw}}]
  (let [make-backend (partial storage/->FileBackend
                              (doto (jio/file file-path)
                                (.createNewFile))
                              (:read rw)
                              (:write rw))]
    (duragent* init (:error-handler rw) make-backend)))

(defmethod duragent :postgres-db
  [_ & {:keys [db-config table-name row-id init lock rw]
        :or {lock (ReentrantLock.)
             rw default-postgres-rw}}]
  (let [make-backend (partial storage/->PGSQLBackend

                              (:metadata rw)
                              (:read rw)
                              (:write rw))]
    (duragent* init meta (:error-handler rw) make-backend)))

(defmethod duragent :redis-db
  [_ & {:keys [db-config key-name init lock rw meta]
        :or {lock (ReentrantLock.)
             rw default-redis-rw}}]
  (let [make-backend (partial storage/->RedisBackend
