mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
firewall: remove redundant session ID param from AddAction method
The SessionID is already present in the Action itself and so this does not need to be passed in as its own parameter.
This commit is contained in:
parent
b4aadaa4bd
commit
7edb614e12
4 changed files with 12 additions and 13 deletions
|
|
@ -194,6 +194,7 @@ func (r *RequestLogger) addNewAction(ri *RequestInfo,
|
|||
}
|
||||
|
||||
action := &firewalldb.Action{
|
||||
SessionID: sessionID,
|
||||
RPCMethod: ri.URI,
|
||||
AttemptedAt: time.Now(),
|
||||
State: firewalldb.ActionStateInit,
|
||||
|
|
@ -222,7 +223,7 @@ func (r *RequestLogger) addNewAction(ri *RequestInfo,
|
|||
}
|
||||
}
|
||||
|
||||
id, err := r.actionsDB.AddAction(sessionID, action)
|
||||
id, err := r.actionsDB.AddAction(action)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue