guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: http-client: Don't drop failed query when reconnecting.


From: guix-commits
Subject: 01/03: http-client: Don't drop failed query when reconnecting.
Date: Sun, 28 Mar 2021 16:43:24 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 673e5276f6b4dda4bfa9dd5bb70220fc8b17abd2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Mar 28 22:04:01 2021 +0200

    http-client: Don't drop failed query when reconnecting.
    
    Reported by Christopher Baines <mail@cbaines.net>.
    
    * guix/http-client.scm (http-multiple-get): Change 2nd argument to
    'drop' to PROCESSED when (false-if-networking-error ...) returns #f.
---
 guix/http-client.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/http-client.scm b/guix/http-client.scm
index 99bbcca..a2e11a1 100644
--- a/guix/http-client.scm
+++ b/guix/http-client.scm
@@ -250,7 +250,7 @@ returning."
              (#f
               (close-port p)
               (connect #f                         ; try again
-                       (drop requests (+ 1 processed))
+                       (drop requests processed)
                        result)))))))))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]