use time_getter on storage

This commit is contained in:
Victor Shyba 2019-02-05 13:14:59 -03:00
parent 63d1ec3c28
commit c6b910a5f3

View file

@ -684,7 +684,7 @@ class SQLiteStorage(SQLiteMixin):
if success:
return self.db.execute(
"insert or replace into reflected_stream values (?, ?, ?)",
(sd_hash, reflector_address, time.time())
(sd_hash, reflector_address, self.time_getter())
)
return self.db.execute(
"delete from reflected_stream where sd_hash=? and reflector_address=?",