mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Fix build error due to cross-merge
This commit is contained in:
parent
baf6301eb5
commit
85415455ed
1 changed files with 2 additions and 2 deletions
|
@ -279,8 +279,8 @@ func (c *Controller) MaintainRecordStates(ctx context.Context, purgeDeletedBefor
|
|||
|
||||
// Purge deletes all records that match the given query. It returns the number of successful deletes and an error.
|
||||
func (c *Controller) Purge(ctx context.Context, q *query.Query, local, internal bool) (int, error) {
|
||||
c.writeLock.RLock()
|
||||
defer c.writeLock.RUnlock()
|
||||
c.exclusiveAccess.RLock()
|
||||
defer c.exclusiveAccess.RUnlock()
|
||||
|
||||
if shuttingDown.IsSet() {
|
||||
return 0, ErrShuttingDown
|
||||
|
|
Loading…
Add table
Reference in a new issue