mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 01:34:57 +00:00
use custom packing for indexable data: PackedEvent
This commit is contained in:
@ -90,7 +90,7 @@ void RelayServer::runCron() {
|
||||
if (expiration == 1) { // Ephemeral event
|
||||
auto view = env.lookup_Event(txn, levId);
|
||||
if (!view) throw herr("missing event from index, corrupt DB?");
|
||||
uint64_t created = view->flat_nested()->created_at();
|
||||
uint64_t created = PackedEventView(view->packed()).created_at();
|
||||
|
||||
if (created <= ephemeralCutoff) {
|
||||
numEphemeral++;
|
||||
|
Reference in New Issue
Block a user