rc: add context to flag Reload function #4685

This commit is contained in:
Nick Craig-Wood
2020-11-26 17:15:52 +00:00
parent 0ed1857fa9
commit 354b4f19ec
4 changed files with 11 additions and 8 deletions

View File

@@ -2,6 +2,8 @@
package filterflags
import (
"context"
"github.com/rclone/rclone/fs/config/flags"
"github.com/rclone/rclone/fs/filter"
"github.com/rclone/rclone/fs/rc"
@@ -14,7 +16,7 @@ var (
)
// Reload the filters from the flags
func Reload() (err error) {
func Reload(ctx context.Context) (err error) {
filter.Active, err = filter.NewFilter(&Opt)
return err
}