Pass network time down to Expire()

This commit is contained in:
Tim Wojtulewicz 2025-03-09 21:04:21 -07:00
parent c7503654e8
commit ebefb21c53
6 changed files with 14 additions and 11 deletions

View file

@ -160,8 +160,11 @@ protected:
/**
* Removes any entries in the backend that have expired. Can be overridden by
* derived classes.
*
* @param current_network_time The network time as of the start of the
* expiration operation.
*/
void Expire() { DoExpire(); }
void Expire(double current_network_time) { DoExpire(current_network_time); }
/**
* Enqueues the Storage::backend_opened event. This is called automatically
@ -192,7 +195,7 @@ private:
virtual OperationResult DoGet(ValPtr key, OperationResultCallback* cb = nullptr) = 0;
virtual OperationResult DoErase(ValPtr key, OperationResultCallback* cb = nullptr) = 0;
virtual void DoPoll() {}
virtual void DoExpire() {}
virtual void DoExpire(double current_network_time) {}
uint8_t modes;
};