gnunet-svn
[Top][All Lists]
Advanced

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

[taler-cashless2ecash] branch master updated: log: enhance logging


From: gnunet
Subject: [taler-cashless2ecash] branch master updated: log: enhance logging
Date: Sun, 02 Jun 2024 09:53:27 +0200

This is an automated email from the git hooks/post-receive script.

joel-haeberli pushed a commit to branch master
in repository cashless2ecash.

The following commit(s) were added to refs/heads/master by this push:
     new 45fa379  log: enhance logging
45fa379 is described below

commit 45fa3790de466484569e69b6321c20a8fb3d948b
Author: Joel-Haeberli <haebu@rubigen.ch>
AuthorDate: Sun Jun 2 09:53:23 2024 +0200

    log: enhance logging
---
 c2ec/exponential-backoff.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/c2ec/exponential-backoff.go b/c2ec/exponential-backoff.go
index 3ef91da..52ce7a7 100644
--- a/c2ec/exponential-backoff.go
+++ b/c2ec/exponential-backoff.go
@@ -30,6 +30,11 @@ func ShouldStartRetry(
        limitMs int,
 ) bool {
 
+       if lastExecution.Unix() == 0 {
+               // means no retry was done yet.
+               return true
+       }
+
        backoffMs := exponentialBackoffMs(retryCount)
        randomizedBackoff := int64(limitMs)
        if backoffMs < int64(limitMs) {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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