Skip to content

Commit

Permalink
Remove FakeRecordLister in favor of gc
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-soltesz committed Jul 24, 2024
1 parent c0a776e commit 26fd912
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 26fd912

Please sign in to comment.