mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Pass network-time-based expiration time to backends instead of an interval
This commit is contained in:
parent
a485b1d237
commit
cad48cebd4
4 changed files with 9 additions and 10 deletions
|
@ -162,9 +162,6 @@ ErrorResult SQLite::DoPut(ValPtr key, ValPtr value, bool overwrite, double expir
|
|||
return res;
|
||||
}
|
||||
|
||||
if ( expiration_time != 0 )
|
||||
expiration_time += run_state::network_time;
|
||||
|
||||
if ( auto res = checkError(sqlite3_bind_double(stmt, 3, expiration_time)); res.has_value() ) {
|
||||
sqlite3_reset(stmt);
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue