aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/update.go6
1 files 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)
}