Skip to content

Commit

Permalink
add more context to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesterner committed Aug 29, 2023
1 parent a9c492b commit b8b7eac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vault/request_handling.go
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ func (c *Core) handleRequest(ctx context.Context, req *logical.Request) (retResp
NamespaceID: ns.ID,
}

// Check for request role
// Check for request role in context to role based quotas
var role string
if reqRole := ctx.Value(logical.CtxKeyRequestRole{}); reqRole != nil {
role = reqRole.(string)
Expand Down Expand Up @@ -1488,7 +1488,7 @@ func (c *Core) handleLoginRequest(ctx context.Context, req *logical.Request) (re
return
}

// Check for request role
// Check for request role in context to role based quotas
var role string
if reqRole := ctx.Value(logical.CtxKeyRequestRole{}); reqRole != nil {
role = reqRole.(string)
Expand Down
2 changes: 1 addition & 1 deletion vault/wrapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ DONELISTHANDLING:
},
}

// Check for request role
// Check for request role in context to role based quotas
var role string
if reqRole := ctx.Value(logical.CtxKeyRequestRole{}); reqRole != nil {
role = reqRole.(string)
Expand Down

0 comments on commit b8b7eac

Please sign in to comment.