From 26fd9120c11e668003a47a5566185cda3c021732 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Wed, 24 Jul 2024 13:55:27 -0400 Subject: [PATCH] Remove FakeRecordLister in favor of gc --- main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.go b/main.go index 8e87f88..112cfda 100644 --- a/main.go +++ b/main.go @@ -65,14 +65,6 @@ func init() { var mainCtx, mainCancel = context.WithCancel(context.Background()) -// TODO(soltesz): query memorystore for list of known hosts. -type FakeRecordLister struct{} - -// List is a fake implementation of the RecordLister interface. -func (r *FakeRecordLister) List() ([]string, error) { - return []string{}, nil -} - func main() { flag.Parse() rtx.Must(flagx.ArgsFromEnv(flag.CommandLine), "Could not parse env args") @@ -115,7 +107,7 @@ func main() { defer gc.Stop() // Create server. - s := handler.NewServer(project, i, mm, asn, d, gc, &FakeRecordLister{}) + s := handler.NewServer(project, i, mm, asn, d, gc) go func() { // Load once. s.Iata.Load(mainCtx)