firewalldb: let ListGroupActions take a context

In preparation for it needing to pass one to GetSessionIDs.
This commit is contained in:
Elle Mouton 2025-02-25 13:36:16 +02:00
parent 9642ce1656
commit 0d6eefad9d
No known key found for this signature in database
GPG key ID: D7D916376026F177
3 changed files with 14 additions and 10 deletions

View file

@ -643,7 +643,7 @@ func (s *sessionRpcServer) PrivacyMapConversion(_ context.Context,
// stored if the actions are interceptor actions, otherwise only the URI and
// timestamp of the actions will be stored. The "full" mode will persist all
// request data for all actions.
func (s *sessionRpcServer) ListActions(_ context.Context,
func (s *sessionRpcServer) ListActions(ctx context.Context,
req *litrpc.ListActionsRequest) (*litrpc.ListActionsResponse, error) {
// If no maximum number of actions is given, use a default of 100.
@ -746,7 +746,7 @@ func (s *sessionRpcServer) ListActions(_ context.Context,
return nil, err
}
actions, err = db.ListGroupActions(groupID, filterFn)
actions, err = db.ListGroupActions(ctx, groupID, filterFn)
if err != nil {
return nil, err
}