Skip to content

Commit

Permalink
pkg/atlas: Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
pg9182 committed Jul 6, 2024
1 parent 09fd9fb commit 8eb2772
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/atlas/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"errors"
"fmt"
"io"
"math"
"net"
"net/http"
"net/netip"
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 8eb2772

Please sign in to comment.