mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
firewalldb: let ListGroupActions take a context
In preparation for it needing to pass one to GetSessionIDs.
This commit is contained in:
parent
9642ce1656
commit
0d6eefad9d
3 changed files with 14 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue