branch: elpa/hyperdrive commit 1db1a4f54ac460a3bca575a71aad9f4ca85091e5 Author: Joseph Turner <jos...@ushin.org> Commit: Joseph Turner <jos...@ushin.org>
Comment: Update TODO --- hyperdrive-lib.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el index 6f5b70c361..281e1e1e84 100644 --- a/hyperdrive-lib.el +++ b/hyperdrive-lib.el @@ -166,11 +166,13 @@ REST may include the argument `:queue', a `plz-queue' in which to make the request." ;; TODO: Document that the request/queue is returned. ;; TODO: Should we create a wrapper for `h/api' which calls - ;; `h//fill-latest-version' for requests to - ;; directories/requests which modify the drive (and therefore - ;; always return the latest version number). If we did this, we - ;; could remove redundant calls to - ;; `h//fill-latest-version' everywhere else. + ;; `h//fill-latest-version' for requests to directories/requests which modify + ;; the drive (and therefore always return the latest version number). If we + ;; did this, we could remove redundant calls to `h//fill-latest-version' + ;; everywhere else. X-Drive-Size is returned by many types of requests, and it + ;; would simplify the code to handle updating the hyperdrive disk-usage in one + ;; place. Once implemented, go through each call to `h/api' to verify that + ;; disk-usage is updated correctly. (declare (indent defun)) (pcase method ((and (or 'get 'head)