aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/atlas/server.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go
index 7399e8e..921d93e 100644
--- a/pkg/atlas/server.go
+++ b/pkg/atlas/server.go
@@ -8,7 +8,6 @@ import (
"errors"
"fmt"
"io"
- "math"
"net"
"net/http"
"net/netip"
@@ -480,19 +479,6 @@ func configureLogging(c *Config) (l zerolog.Logger, reopen func(), err error) {
return
}
-func expbackoff(_ error, last time.Time, count int) bool {
- var hmax, hmaxat, hrate float64 = 24, 8, 2.3
- // ~5m, ~10m, ~23m, ~52m, ~2h, ~4.6h, ~10.5h, 24h
-
- var next float64
- if count >= int(hmaxat) {
- next = hmax
- } else {
- next = math.Pow(hrate, float64(count)) * hmax / math.Pow(hrate, hmaxat)
- }
- return time.Since(last).Hours() >= next
-}
-
func configureAccountStorage(c *Config) (api0.AccountStorage, error) {
switch typ, arg, _ := strings.Cut(c.API0_Storage_Accounts, ":"); typ {
case "memory":