mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-24 19:38:52 +00:00
Fix possible context leaks
This commit is contained in:
@@ -182,6 +182,7 @@ func (r *RBACStore) Watch(apiOp *types.APIRequest, schema *types.APISchema, w ty
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(apiOp.Context())
|
||||
defer cancel()
|
||||
apiOp = apiOp.WithContext(ctx)
|
||||
|
||||
eg := errgroup.Group{}
|
||||
|
Reference in New Issue
Block a user