1
0

refactor: remove unused code

This commit is contained in:
dump_stack() 2023-05-17 05:03:16 +00:00
parent 5270f2438c
commit 008ce1cdbf
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -6,10 +6,8 @@ import (
"net/url" "net/url"
"regexp" "regexp"
"strings" "strings"
"time"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"golang.org/x/time/rate"
"code.dumpstack.io/tools/out-of-tree/distro/debian/snapshot/mr" "code.dumpstack.io/tools/out-of-tree/distro/debian/snapshot/mr"
) )
@ -18,13 +16,6 @@ const timeLayout = "20060102T150405Z"
const URL = "https://snapshot.debian.org" 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) { func SourcePackageVersions(name string) (versions []string, err error) {
pkg, err := mr.GetPackage(name) pkg, err := mr.GetPackage(name)
if err != nil { if err != nil {