diff options
-rw-r--r-- | guix-build-coordinator/agent-messaging/http.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/guix-build-coordinator/agent-messaging/http.scm b/guix-build-coordinator/agent-messaging/http.scm index 8b2f04c..ede0743 100644 --- a/guix-build-coordinator/agent-messaging/http.scm +++ b/guix-build-coordinator/agent-messaging/http.scm @@ -301,11 +301,16 @@ (define (perform-upload) (retry-on-error (lambda () - (let ((bytes (or (get-partial-upload-bytes) - (get-completed-upload-bytes)))) + (let* ((partial-upload-bytes (get-partial-upload-bytes)) + (completed-upload-bytes (get-completed-upload-bytes)) + (bytes (or partial-upload-bytes + completed-upload-bytes))) ;; Check if the server has all the bytes (unless (and bytes (eq? bytes file-size)) + (log 'DEBUG "still more to send (bytes: " file-size + ", partial upload bytes: " partial-upload-bytes + ", completed upload bytes: " completed-upload-bytes) ;; Still more to send (call-with-input-file file |