1
0

refactor: remove unused code

This commit is contained in:
2023-05-17 05:03:16 +00:00
parent 5270f2438c
commit 008ce1cdbf

View File

@ -6,10 +6,8 @@ import (
"net/url"
"regexp"
"strings"
"time"
"github.com/rs/zerolog/log"
"golang.org/x/time/rate"
"code.dumpstack.io/tools/out-of-tree/distro/debian/snapshot/mr"
)
@ -18,13 +16,6 @@ const timeLayout = "20060102T150405Z"
const URL = "https://snapshot.debian.org"
var Limiter = rate.NewLimiter(rate.Every(time.Second), 1)
// Retries in case of 5xx errors
var Retries = 10
var HttpTimeout = time.Second * 5
func SourcePackageVersions(name string) (versions []string, err error) {
pkg, err := mr.GetPackage(name)
if err != nil {