Remove unneeded context parameter (#7057)

This commit is contained in:
Jim Kalafut 2019-07-03 07:12:46 -07:00 committed by GitHub
parent 267d5e7e40
commit d38468aacb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -1477,7 +1477,7 @@ func (i *IdentityStore) oidcPeriodicFunc(ctx context.Context) {
var nextRun time.Time
now := time.Now()
nsPaths := i.listNamespacePaths(ctx)
nsPaths := i.listNamespacePaths()
if v, ok := i.oidcCache.Get(nilNamespace, "nextRun"); ok {
nextRun = v.(time.Time)

View File

@ -3,11 +3,9 @@
package vault
import (
"context"
"github.com/hashicorp/vault/helper/namespace"
)
func (i *IdentityStore) listNamespacePaths(ctx context.Context) []string {
func (i *IdentityStore) listNamespacePaths() []string {
return []string{namespace.RootNamespace.Path}
}