From 9fc9685dc711003ee9fe74154c8717e73d801aa2 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 19 Feb 2022 12:05:21 -0500 Subject: dbstore/dbstore.go: s/insert-description/insert-desc, shorten comment --- dbstore/dbstore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbstore') diff --git a/dbstore/dbstore.go b/dbstore/dbstore.go index 2946d8f..dae747d 100644 --- a/dbstore/dbstore.go +++ b/dbstore/dbstore.go @@ -378,7 +378,7 @@ func (me DbStore) addDescriptions(ctx context.Context, tx Tx, ds []nvd_feed.Desc for i, d := range(ds) { // add description - rs, err := tx.Exec(ctx, "feed/insert-description", d.Lang, d.Value) + rs, err := tx.Exec(ctx, "feed/insert-desc", d.Lang, d.Value) if err != nil { return r, err } @@ -397,7 +397,7 @@ func (me DbStore) addDescriptions(ctx context.Context, tx Tx, ds []nvd_feed.Desc return r, nil } -// Add feed item and return item ID. +// Add CVE. func (me DbStore) addCve(ctx context.Context, tx Tx, itemId int64, cve nvd_feed.Cve) error { // cve ID var cveId int64 -- cgit v1.2.3