1
0
Fork 0

refactor: remove unused code

master
dump_stack() 2023-05-17 05:03:16 +00:00
parent 5270f2438c
commit 008ce1cdbf
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 0 additions and 9 deletions

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 {