aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2024-07-06 19:53:51 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2024-07-06 19:53:51 -0400
commit8eb2772d94eaff6442af15e4475f6718dae6713a (patch)
tree2785490a7b7c1f5dd74ad7ca7f85f1c1d8d3ecb9
parent09fd9fbcf850f472377efa5ec7358d8445ae3e08 (diff)
downloadAtlas-8eb2772d94eaff6442af15e4475f6718dae6713a.tar.gz
Atlas-8eb2772d94eaff6442af15e4475f6718dae6713a.zip
pkg/atlas: Remove unused function
-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":