[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 395d1dd5e0 25/49: Fix: (-fill-version-ranges) S
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 395d1dd5e0 25/49: Fix: (-fill-version-ranges) Stop filling when loop returns early |
Date: |
Wed, 20 Sep 2023 19:01:33 -0400 (EDT) |
branch: elpa/hyperdrive
commit 395d1dd5e04a1be7a4bb56d2075434934f92c74c
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Fix: (-fill-version-ranges) Stop filling when loop returns early
---
hyperdrive-lib.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index e687c01176..369207c886 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -828,17 +828,16 @@ Once all requests return, call FINALLY with no arguments."
:limit hyperdrive-queue-size
:finally (lambda ()
(setf
outstanding-nonexistent-requests-p nil)
- (cl-decf limit
hyperdrive-queue-size)
- (let
((last-requested-entry (hyperdrive-copy-tree entry t)))
- (cl-incf
(hyperdrive-entry-version last-requested-entry))
- (if
(hyperdrive-entry-exists-p last-requested-entry)
- (fill-existent
entry)
- (fill-nonexistent
entry))
- (when finishedp
+ (if finishedp
;; If the
fill-nonexistent loop stopped
- ;; prematurely, the
fill-entry-queue
- ;; finalizer won't
run: call `finally' here.
- (funcall
finally)))))))
+ ;; prematurely,
stop filling and call `finally'.
+ (funcall finally)
+ (cl-decf limit
hyperdrive-queue-size)
+ (let
((last-requested-entry (hyperdrive-copy-tree entry t)))
+ (cl-incf
(hyperdrive-entry-version last-requested-entry))
+ (if
(hyperdrive-entry-exists-p last-requested-entry)
+ (fill-existent
entry)
+ (fill-nonexistent
entry))))))))
;; For nonexistent entries, send requests in parallel.
(cl-dotimes (i hyperdrive-queue-size)
;; Send the maximum number of simultaneous requests.
- [nongnu] elpa/hyperdrive c97589207e 04/49: Change: (-history-mode-map) Bind + to -history-fill-version-ranges, (continued)
- [nongnu] elpa/hyperdrive c97589207e 04/49: Change: (-history-mode-map) Bind + to -history-fill-version-ranges, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 6021d99388 05/49: Docs: Document keybinding for hyperdrive-history-fill-version-ranges, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 049b18656c 10/49: WIP: (hyperdrive-fill-version-ranges) Ensure FINALLY runs, etc., ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive d48a0109e0 11/49: WIP: Fixes, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 948b2f181f 13/49: Tidy: (hyperdrive-fill-version-ranges) Reduce nesting, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 41081584ef 14/49: Tidy: (-fill-version-ranges) Call finally, not plz-queue-finally, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 1cfdeaea1f 15/49: Change: (hyperdrive-fill-version-ranges) let-bind limit at the top, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 15a9b0ff56 17/49: Tidy: Remove message statements, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8f9887407f 18/49: Tidy: (hyperdrive-fill-version-ranges) Use ignore, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 3ea4e934db 24/49: Change: (hyperdrive-open) Use hyperdrive-message, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 395d1dd5e0 25/49: Fix: (-fill-version-ranges) Stop filling when loop returns early,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 8dc8f09a82 30/49: Comment: Add TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 77186465d7 33/49: WIP: Fixes, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 1844b57f51 39/49: Fix: (-update-nonexistent-version-range) Add default finally, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 44413406c9 40/49: Change: (-history-fill-version-ranges) Add loading indicator, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive e2ddaa770c 01/49: Change: (hyperdrive-fill-version-ranges) Only recurse from ENTRY, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 509f72b4f0 02/49: Change: (hyperdrive-history) Display history buffer immediately, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive d93ab84313 06/49: Meta: Update changelog, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 32580aaa6c 07/49: Docs: Document hyperdrive-fill-version-ranges-limit, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive f2474f65f0 08/49: Change: (-fill-version-ranges) In ELSE, send parallel requests, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 063c2275d1 09/49: WIP: (-fill-version-ranges) Fill existent and nonexistent ranges, ELPA Syncer, 2023/09/20