mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-08 06:23:18 +00:00
Pass context to backends (#3750)
* Start work on passing context to backends * More work on passing context * Unindent logical system * Unindent token store * Unindent passthrough * Unindent cubbyhole * Fix tests * use requestContext in rollback and expiration managers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mock
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/rpc"
|
||||
|
||||
"github.com/hashicorp/vault/logical"
|
||||
@@ -26,7 +27,6 @@ func errorPaths(b *backend) []*framework.Path {
|
||||
}
|
||||
}
|
||||
|
||||
func (b *backend) pathErrorRPCRead(
|
||||
req *logical.Request, data *framework.FieldData) (*logical.Response, error) {
|
||||
func (b *backend) pathErrorRPCRead(ctx context.Context, req *logical.Request, data *framework.FieldData) (*logical.Response, error) {
|
||||
return nil, rpc.ErrShutdown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user