aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/index.go')
-rw-r--r--cmd/index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/index.go b/cmd/index.go
index 358182c..f3fa23f 100644
--- a/cmd/index.go
+++ b/cmd/index.go
@@ -106,9 +106,9 @@ func RunIndex(gFlags GlobalFlags, iFlags IndexFlags, db *data.Query) byte {
// switch in order to appease gopls...
switch iFlags.Subcommand {
case "build":
- err = db.Put(idx)
+ err = db.Put(context.Background(), idx)
case "update":
- err = db.Update(idx)
+ err = db.Update(context.Background(), idx)
}
if err != nil {
fmt.Fprintln(os.Stderr, "Error modifying index:", err)