mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Add context to storage backends and wire it through a lot of places (#3817)
This commit is contained in:
		 Brian Kassouf
					Brian Kassouf
				
			
				
					committed by
					
						 Jeff Mitchell
						Jeff Mitchell
					
				
			
			
				
	
			
			
			 Jeff Mitchell
						Jeff Mitchell
					
				
			
						parent
						
							2864fbd697
						
					
				
				
					commit
					8142b42d95
				
			| @@ -11,9 +11,9 @@ import ( | ||||
| 	"golang.org/x/oauth2" | ||||
| ) | ||||
|  | ||||
| func Factory(conf *logical.BackendConfig) (logical.Backend, error) { | ||||
| func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error) { | ||||
| 	b := Backend() | ||||
| 	if err := b.Setup(conf); err != nil { | ||||
| 	if err := b.Setup(ctx, conf); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return b, nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user