Skip to content

Commit

Permalink
Add context parameters to pmctl
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jul 21, 2020
1 parent 27e04da commit 2bd4c04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pmctl/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"errors"
"fmt"
"log"
Expand Down Expand Up @@ -212,7 +213,7 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) {
}

func updateRegistryIndex() {
err := registry.LoadIndexes()
err := registry.LoadIndexes(context.TODO())
if err != nil {
log.Printf("WARNING: error loading indexes: %s\n", err)
}
Expand Down

0 comments on commit 2bd4c04

Please sign in to comment.