refactor: remove unused code
This commit is contained in:
parent
5270f2438c
commit
008ce1cdbf
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user