Skip to content

Commit

Permalink
sqlite: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jul 13, 2023
1 parent 19dad86 commit 0f764d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion persist/sqlite/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ func (s *Store) ContractFormationSet(id types.FileContractID) ([]types.Transacti
return txnSet, nil
}

// SetContractStatus sets the contract's status.
// ExpireContract expires a contract and updates its status. Should only be used
// if the contract is active or pending.
func (s *Store) ExpireContract(id types.FileContractID, status contracts.ContractStatus) error {
return s.transaction(func(tx txn) error {
if err := setContractStatus(&dbTxn{s}, id, status); err != nil {
Expand Down

0 comments on commit 0f764d2

Please sign in to comment.