From 8eb2772d94eaff6442af15e4475f6718dae6713a Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sat, 6 Jul 2024 19:53:51 -0400 Subject: pkg/atlas: Remove unused function --- pkg/atlas/server.go | 14 -------------- 1 file changed, 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": -- cgit v1.2.3