[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive b777ee2722 37/49: Change: (-fill-version-ranges
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive b777ee2722 37/49: Change: (-fill-version-ranges) Rename labeled functions to -at |
Date: |
Wed, 20 Sep 2023 19:01:34 -0400 (EDT) |
branch: elpa/hyperdrive
commit b777ee272264e60cf16e91828fefae711d3ef798
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (-fill-version-ranges) Rename labeled functions to -at
---
hyperdrive-lib.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 70f4eec256..d9f8fbb72a 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -819,28 +819,28 @@ Once all requests return, call FINALLY with no arguments."
(funcall finally)))))
;; Flag used in the nonexistent-queue finalizer.
finishedp)
- (cl-labels ((fill-existent (version)
+ (cl-labels ((fill-existent-at (version)
(let ((prev-range-end (1- (car
(hyperdrive-entry-version-range entry :version version)))))
(if (and (cl-plusp total-requests-limit)
(eq 'unknown (hyperdrive-entry-exists-p entry
:version prev-range-end)))
;; Recurse backward through history.
- (fill-entry prev-range-end)
+ (fill-entry-at prev-range-end)
(setf finishedp t))))
- (fill-nonexistent (version)
+ (fill-nonexistent-at (version)
(let ((nonexistent-queue
(make-plz-queue
:limit hyperdrive-queue-limit
:finally (lambda ()
(setf outstanding-nonexistent-requests-p
nil)
(if finishedp
- ;; If the fill-nonexistent loop
stopped
+ ;; If the fill-nonexistent-at loop
stopped
;; prematurely, stop filling and call
`finally'.
(funcall finally)
(let ((last-requested-version (-
version hyperdrive-queue-limit)))
(cl-decf total-requests-limit
hyperdrive-queue-limit)
(pcase-exhaustive
(hyperdrive-entry-exists-p entry :version last-requested-version)
- ('t (fill-existent
last-requested-version))
- ('nil (fill-nonexistent
last-requested-version))
+ ('t (fill-existent-at
last-requested-version))
+ ('nil (fill-nonexistent-at
last-requested-version))
('unknown
(hyperdrive-error "Entry should
have been filled at version: %s" last-requested-version))))))))
;; Make a copy of the version ranges for use in the
HEAD request callback.
@@ -877,7 +877,7 @@ Once all requests return, call FINALLY with no arguments."
(_ (signal (car err) (cdr err)))))
:noquery t)
(setf outstanding-nonexistent-requests-p t)))))
- (fill-entry (version)
+ (fill-entry-at (version)
(let ((copy-entry (hyperdrive-copy-tree entry t)))
(setf (hyperdrive-entry-version copy-entry) version)
(cl-decf total-requests-limit)
@@ -894,16 +894,16 @@ Once all requests return, call FINALLY with no arguments."
;; range-start that was already known
;; before this batch of parallel requests.
(setf finishedp t)
- (fill-existent version))))
+ (fill-existent-at version))))
:else (lambda (err)
(pcase (plz-response-status (plz-error-response
err))
;; FIXME: If plz-error is a curl-error, this
block will fail.
(404
(hyperdrive-update-nonexistent-version-range
copy-entry)
- (fill-nonexistent version))
+ (fill-nonexistent-at version))
(_ (signal (car err) (cdr err)))))
:noquery t))))
- (fill-entry (hyperdrive-entry-version entry)))))
+ (fill-entry-at (hyperdrive-entry-version entry)))))
(defun hyperdrive-fill-metadata (hyperdrive)
"Fill HYPERDRIVE's public metadata and return it.
- [nongnu] elpa/hyperdrive 758486bcdd 28/49: Change: Rename hyperdrive-queue-size to hyperdrive-queue-limit, (continued)
- [nongnu] elpa/hyperdrive 758486bcdd 28/49: Change: Rename hyperdrive-queue-size to hyperdrive-queue-limit, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive a61c660ee6 29/49: Change: (-fill-version-ranges) Rename limit to total-requests-limit, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 11cf863344 31/49: Comment: Add TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive cb7d11be63 38/49: Tidy: Remove message statements, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 381ffe4a59 42/49: Comment: Add TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive cfb434e0d0 34/49: Change: (-entry-version-range) Accept keyed argument version, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive bbbf1ff7e8 32/49: WIP:, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 21fe5af744 43/49: Tidy: (hyperdrive-entry-version-range) Declare indent defun, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8363c8d2c7 44/49: Change: (-entry-version-ranges-no-gaps) Add cache-only option, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive bd3e8c90ef 48/49: Merge branch 'wip/history-fill-version-ranges-2', ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive b777ee2722 37/49: Change: (-fill-version-ranges) Rename labeled functions to -at,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 76ef2b3552 19/49: Comment: Remove NOTE, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive a01287cb8b 21/49: Comment: Explanation, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive afaa1e675b 35/49: Change: (-entry-exists-p) Accept keyed argument version, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive c08046fa04 36/49: Change: (-fill-version-ranges) Pass versions instead of entries, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8d06964e22 47/49: Comment: Remove TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 9e34eb28d1 49/49: Tidy: (hyperdrive--clean-buffer) Use delete-all-overlays, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive afdcd5fda8 41/49: Comment: Remove old commented version of -fill-version-ranges, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 385dab296d 45/49: Change: (hyperdrive-previous-version) Suggest hyperdrive-history, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive fcc33f826f 46/49: Tidy: Docstrings, spelling words, ELPA Syncer, 2023/09/20