Skip to content

Commit

Permalink
fix client reference
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesterner committed Jul 24, 2023
1 parent beaa9e6 commit 2ab227a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions benchmarktests/target_secret_kvv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (k *KVV1Test) Cleanup(client *api.Client) error {
return nil
}

func (k *KVV1Test) Setup(c *api.Client, mountName string, topLevelConfig *TopLevelTargetConfig) (BenchmarkBuilder, error) {
func (k *KVV1Test) Setup(client *api.Client, mountName string, topLevelConfig *TopLevelTargetConfig) (BenchmarkBuilder, error) {
var err error
mountPath := mountName
k.logger = targetLogger.Named("kvv1")
Expand All @@ -136,7 +136,7 @@ func (k *KVV1Test) Setup(c *api.Client, mountName string, topLevelConfig *TopLev

var setupIndex string
k.logger.Trace(mountLogMessage("secrets", "kvv1", mountPath))
err = c.WithResponseCallbacks(api.RecordState(&setupIndex)).Sys().Mount(mountPath, &api.MountInput{
err = client.WithResponseCallbacks(api.RecordState(&setupIndex)).Sys().Mount(mountPath, &api.MountInput{
Type: "kv",
})
if err != nil {
Expand All @@ -151,7 +151,6 @@ func (k *KVV1Test) Setup(c *api.Client, mountName string, topLevelConfig *TopLev
},
}

var client *api.Client
if setupIndex != "" {
client = client.WithRequestCallbacks(api.RequireState(setupIndex))
}
Expand Down

0 comments on commit 2ab227a

Please sign in to comment.