From 281f6eff5acfd38cae0bd3217c36622c27389b75 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 22 Feb 2022 21:58:26 -0500 Subject: cmd/update.go: update for new nvdmirror api --- cmd/update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index fe234ed..1c88bc5 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -29,12 +29,12 @@ var updateCmd = &cobra.Command{ defer cache.Close() // custom sync config - urls := nvdmirror.Urls { - Cve11Base: "https://pmdn.org/nvdmirror", + config := nvdmirror.SyncConfig { + Cve11BaseUrl: "https://pmdn.org/nvdmirror", } // sync data - if err := nvdmirror.Sync(urls, &cache, "stuff"); err != nil { + if err := nvdmirror.Sync(config, &cache, "stuff"); err != nil { log.Error().Err(err).Msg("Sync") os.Exit(-1) } -- cgit v1.2.3