mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Add context parameters to pmctl
This commit is contained in:
parent
27e04da1e5
commit
2bd4c044c5
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
@ -212,7 +213,7 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateRegistryIndex() {
|
func updateRegistryIndex() {
|
||||||
err := registry.LoadIndexes()
|
err := registry.LoadIndexes(context.TODO())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("WARNING: error loading indexes: %s\n", err)
|
log.Printf("WARNING: error loading indexes: %s\n", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue