2018-09-29 12:14:58 +00:00
|
|
|
use crate::runtime::QueryDescriptorSet;
|
|
|
|
use crate::runtime::Revision;
|
2018-10-01 09:37:35 +00:00
|
|
|
use crate::runtime::StampedValue;
|
2018-09-28 15:04:52 +00:00
|
|
|
use crate::CycleDetected;
|
2018-10-05 08:54:51 +00:00
|
|
|
use crate::Database;
|
2018-09-29 12:14:58 +00:00
|
|
|
use crate::QueryDescriptor;
|
2018-10-05 08:59:10 +00:00
|
|
|
use crate::QueryFunction;
|
2018-09-28 15:04:52 +00:00
|
|
|
use crate::QueryStorageOps;
|
|
|
|
use crate::QueryTable;
|
2018-10-05 19:23:05 +00:00
|
|
|
use crate::UncheckedMutQueryStorageOps;
|
2018-09-30 11:28:22 +00:00
|
|
|
use log::debug;
|
2018-09-28 18:02:39 +00:00
|
|
|
use parking_lot::{RwLock, RwLockUpgradableReadGuard};
|
2018-09-28 15:04:52 +00:00
|
|
|
use rustc_hash::FxHashMap;
|
|
|
|
use std::any::Any;
|
|
|
|
use std::cell::RefCell;
|
|
|
|
use std::collections::hash_map::Entry;
|
|
|
|
use std::fmt::Debug;
|
|
|
|
use std::fmt::Display;
|
|
|
|
use std::fmt::Write;
|
|
|
|
use std::hash::Hash;
|
2018-10-06 17:13:30 +00:00
|
|
|
use std::marker::PhantomData;
|
2018-09-28 15:04:52 +00:00
|
|
|
|
2018-09-30 10:09:06 +00:00
|
|
|
/// Memoized queries store the result plus a list of the other queries
|
|
|
|
/// that they invoked. This means we can avoid recomputing them when
|
|
|
|
/// none of those inputs have changed.
|
2018-10-06 17:13:30 +00:00
|
|
|
pub type MemoizedStorage<DB, Q> = WeakMemoizedStorage<DB, Q, AlwaysMemoizeValue>;
|
|
|
|
|
|
|
|
/// "Dependency" queries just track their dependencies and not the
|
|
|
|
/// actual value (which they produce on demand). This lessens the
|
|
|
|
/// storage requirements.
|
|
|
|
pub type DependencyStorage<DB, Q> = WeakMemoizedStorage<DB, Q, NeverMemoizeValue>;
|
|
|
|
|
2018-10-09 12:39:41 +00:00
|
|
|
pub struct WeakMemoizedStorage<DB, Q, MP>
|
2018-09-28 15:04:52 +00:00
|
|
|
where
|
2018-10-05 08:59:10 +00:00
|
|
|
Q: QueryFunction<DB>,
|
2018-10-05 08:54:51 +00:00
|
|
|
DB: Database,
|
2018-10-09 12:39:41 +00:00
|
|
|
MP: MemoizationPolicy<DB, Q>,
|
2018-09-28 15:04:52 +00:00
|
|
|
{
|
2018-10-05 08:54:51 +00:00
|
|
|
map: RwLock<FxHashMap<Q::Key, QueryState<DB, Q>>>,
|
2018-10-09 12:39:41 +00:00
|
|
|
policy: PhantomData<MP>,
|
2018-10-06 17:13:30 +00:00
|
|
|
}
|
|
|
|
|
2018-10-09 12:39:41 +00:00
|
|
|
pub trait MemoizationPolicy<DB, Q>
|
2018-10-06 17:13:30 +00:00
|
|
|
where
|
|
|
|
Q: QueryFunction<DB>,
|
|
|
|
DB: Database,
|
|
|
|
{
|
|
|
|
fn should_memoize_value(key: &Q::Key) -> bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum AlwaysMemoizeValue {}
|
2018-10-09 12:39:41 +00:00
|
|
|
impl<DB, Q> MemoizationPolicy<DB, Q> for AlwaysMemoizeValue
|
2018-10-06 17:13:30 +00:00
|
|
|
where
|
|
|
|
Q: QueryFunction<DB>,
|
|
|
|
DB: Database,
|
|
|
|
{
|
|
|
|
fn should_memoize_value(_key: &Q::Key) -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum NeverMemoizeValue {}
|
2018-10-09 12:39:41 +00:00
|
|
|
impl<DB, Q> MemoizationPolicy<DB, Q> for NeverMemoizeValue
|
2018-10-06 17:13:30 +00:00
|
|
|
where
|
|
|
|
Q: QueryFunction<DB>,
|
|
|
|
DB: Database,
|
|
|
|
{
|
|
|
|
fn should_memoize_value(_key: &Q::Key) -> bool {
|
|
|
|
false
|
|
|
|
}
|
2018-09-28 15:04:52 +00:00
|
|
|
}
|
|
|
|
|
2018-09-28 17:53:15 +00:00
|
|
|
/// Defines the "current state" of query's memoized results.
|
2018-10-05 08:54:51 +00:00
|
|
|
enum QueryState<DB, Q>
|
2018-09-29 12:14:58 +00:00
|
|
|
where
|
2018-10-05 08:59:10 +00:00
|
|
|
Q: QueryFunction<DB>,
|
2018-10-05 08:54:51 +00:00
|
|
|
DB: Database,
|
2018-09-29 12:14:58 +00:00
|
|
|
{
|
2018-09-28 17:53:15 +00:00
|
|
|
/// We are currently computing the result of this query; if we see
|
|
|
|
/// this value in the table, it indeeds a cycle.
|
|
|
|
InProgress,
|
|
|
|
|
|
|
|
/// We have computed the query already, and here is the result.
|
2018-10-05 08:54:51 +00:00
|
|
|
Memoized(Memo<DB, Q>),
|
2018-09-29 11:24:53 +00:00
|
|
|
}
|
|
|
|
|
2018-10-05 08:54:51 +00:00
|
|
|
struct Memo<DB, Q>
|
2018-09-29 12:14:58 +00:00
|
|
|
where
|
2018-10-05 08:59:10 +00:00
|
|
|
Q: QueryFunction<DB>,
|
2018-10-05 08:54:51 +00:00
|
|
|
DB: Database,
|
2018-09-29 12:14:58 +00:00
|
|
|
{
|
2018-10-06 17:13:30 +00:00
|
|
|
/// Last time the value has actually changed.
|
|
|
|
/// changed_at can be less than verified_at.
|
|
|
|
changed_at: Revision,
|
2018-10-09 12:37:57 +00:00
|
|
|
|
2018-10-06 17:13:30 +00:00
|
|
|
/// The result of the query, if we decide to memoize it.
|
|
|
|
value: Option<Q::Value>,
|
2018-09-29 12:14:58 +00:00
|
|
|
|
2018-10-05 08:54:51 +00:00
|
|
|
inputs: QueryDescriptorSet<DB>,
|
2018-09-29 12:14:58 +00:00
|
|
|
|
|
|
|
/// Last time that we checked our inputs to see if they have
|
|
|
|
/// changed. If this is equal to the current revision, then the
|
|
|
|
/// value is up to date. If not, we need to check our inputs and
|
|
|
|
/// see if any of them have changed since our last check -- if so,
|
|
|
|
/// we'll need to re-execute.
|
|
|
|
verified_at: Revision,
|
2018-09-30 10:04:09 +00:00
|
|
|
}
|
|
|
|
|
2018-10-09 12:39:41 +00:00
|
|
|
impl<DB, Q, MP> Default for WeakMemoizedStorage<DB, Q, MP>
|
2018-09-28 15:40:20 +00:00
|
|
|
where
|
2018-10-05 08:59:10 +00:00
|
|
|
Q: QueryFunction<DB>,
|
2018-10-05 08:54:51 +00:00
|
|
|
DB: Database,
|
2018-10-09 12:39:41 +00:00
|
|
|
MP: MemoizationPolicy<DB, Q>,
|
2018-09-28 15:40:20 +00:00
|
|
|
{
|
|
|
|
fn default() -> Self {
|
2018-10-06 17:13:30 +00:00
|
|
|
WeakMemoizedStorage {
|
2018-09-28 18:02:39 +00:00
|
|
|
map: RwLock::new(FxHashMap::default()),
|
2018-10-09 12:39:41 +00:00
|
|
|
policy: PhantomData,
|
2018-09-28 15:40:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-09 12:39:41 +00:00
|
|
|
impl<DB, Q, MP> WeakMemoizedStorage<DB, Q, MP>
|
2018-09-28 15:04:52 +00:00
|
|
|
where
|
2018-10-05 08:59:10 +00:00
|
|
|
Q: QueryFunction<DB>,
|
2018-10-05 08:54:51 +00:00
|
|
|
DB: Database,
|
2018-10-09 12:39:41 +00:00
|
|
|
MP: MemoizationPolicy<DB, Q>,
|
2018-09-28 15:04:52 +00:00
|
|
|
{
|
2018-09-30 14:22:11 +00:00
|
|
|
fn read(
|
2018-09-28 15:04:52 +00:00
|
|
|
&self,
|
2018-10-05 08:54:51 +00:00
|
|
|
db: &DB,
|
2018-09-28 15:04:52 +00:00
|
|
|
key: &Q::Key,
|
2018-10-05 08:54:51 +00:00
|
|
|
descriptor: &DB::QueryDescriptor,
|
2018-09-30 10:04:09 +00:00
|
|
|
) -> Result<StampedValue<Q::Value>, CycleDetected> {
|
2018-10-05 08:54:51 +00:00
|
|
|
let revision_now = db.salsa_runtime().current_revision();
|
2018-09-29 12:14:58 +00:00
|
|
|
|
2018-09-30 11:28:22 +00:00
|
|
|
debug!(
|
|
|
|
"{:?}({:?}): invoked at {:?}",
|
|
|
|
Q::default(),
|
|
|
|
key,
|
|
|
|
revision_now,
|
|
|
|
);
|
|
|
|
|
2018-09-29 12:14:58 +00:00
|
|
|
let mut old_value = {
|
2018-09-28 18:02:39 +00:00
|
|
|
let map_read = self.map.upgradable_read();
|
|
|
|
if let Some(value) = map_read.get(key) {
|
2018-09-29 12:14:58 +00:00
|
|
|
match value {
|
|
|
|
QueryState::InProgress => return Err(CycleDetected),
|
|
|
|
QueryState::Memoized(m) => {
|
2018-09-30 11:28:22 +00:00
|
|
|
debug!(
|
|
|
|
"{:?}({:?}): found memoized value verified_at={:?}",
|
|
|
|
Q::default(),
|
|
|
|
key,
|
|
|
|
m.verified_at,
|
|
|
|
);
|
2018-10-09 12:37:57 +00:00
|
|
|
|
|
|
|
// We've found that the query is definitely up-to-date.
|
2018-10-06 17:13:30 +00:00
|
|
|
// If the value is also memoized, return it.
|
|
|
|
// Otherwise fallback to recomputing the value.
|
2018-09-29 12:14:58 +00:00
|
|
|
if m.verified_at == revision_now {
|
2018-10-06 17:13:30 +00:00
|
|
|
if let Some(value) = &m.value {
|
|
|
|
debug!(
|
|
|
|
"{:?}({:?}): returning memoized value (changed_at={:?})",
|
|
|
|
Q::default(),
|
|
|
|
key,
|
|
|
|
m.changed_at,
|
|
|
|
);
|
|
|
|
return Ok(StampedValue {
|
|
|
|
value: value.clone(),
|
|
|
|
changed_at: m.changed_at,
|
|
|
|
});
|
|
|
|
};
|
2018-09-29 12:14:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-09-28 15:04:52 +00:00
|
|
|
}
|
2018-09-28 18:02:39 +00:00
|
|
|
|
|
|
|
let mut map_write = RwLockUpgradableReadGuard::upgrade(map_read);
|
2018-09-29 12:14:58 +00:00
|
|
|
map_write.insert(key.clone(), QueryState::InProgress)
|
|
|
|
};
|
|
|
|
|
|
|
|
// If we have an old-value, it *may* now be stale, since there
|
|
|
|
// has been a new revision since the last time we checked. So,
|
|
|
|
// first things first, let's walk over each of our previous
|
|
|
|
// inputs and check whether they are out of date.
|
|
|
|
if let Some(QueryState::Memoized(old_memo)) = &mut old_value {
|
2018-10-09 12:40:53 +00:00
|
|
|
if old_memo.value.is_some() {
|
|
|
|
if old_memo
|
|
|
|
.inputs
|
|
|
|
.iter()
|
|
|
|
.all(|old_input| !old_input.maybe_changed_since(db, old_memo.changed_at))
|
|
|
|
{
|
|
|
|
debug!("{:?}({:?}): inputs still valid", Q::default(), key);
|
2018-10-06 17:13:30 +00:00
|
|
|
// If none of out inputs have changed since the last time we refreshed
|
|
|
|
// our value, then our value must still be good. We'll just patch
|
|
|
|
// the verified-at date and re-use it.
|
|
|
|
old_memo.verified_at = revision_now;
|
|
|
|
let value = old_memo.value.clone().unwrap();
|
|
|
|
let changed_at = old_memo.changed_at;
|
|
|
|
|
|
|
|
let mut map_write = self.map.write();
|
|
|
|
self.overwrite_placeholder(&mut map_write, key, old_value.unwrap());
|
|
|
|
return Ok(StampedValue { value, changed_at });
|
|
|
|
}
|
2018-09-29 12:14:58 +00:00
|
|
|
}
|
2018-09-28 15:04:52 +00:00
|
|
|
}
|
|
|
|
|
2018-10-06 17:13:30 +00:00
|
|
|
// Query was not previously executed, or value is potentially
|
|
|
|
// stale, or value is absent. Let's execute!
|
2018-10-05 08:54:51 +00:00
|
|
|
let (mut stamped_value, inputs) = db
|
2018-09-29 09:31:26 +00:00
|
|
|
.salsa_runtime()
|
2018-10-05 08:54:51 +00:00
|
|
|
.execute_query_implementation::<Q>(db, descriptor, key);
|
2018-09-28 15:04:52 +00:00
|
|
|
|
2018-09-29 12:14:58 +00:00
|
|
|
// We assume that query is side-effect free -- that is, does
|
|
|
|
// not mutate the "inputs" to the query system. Sanity check
|
|
|
|
// that assumption here, at least to the best of our ability.
|
|
|
|
assert_eq!(
|
2018-10-05 08:54:51 +00:00
|
|
|
db.salsa_runtime().current_revision(),
|
2018-09-29 12:14:58 +00:00
|
|
|
revision_now,
|
|
|
|
"revision altered during query execution",
|
|
|
|
);
|
|
|
|
|
|
|
|
// If the new value is equal to the old one, then it didn't
|
|
|
|
// really change, even if some of its inputs have. So we can
|
2018-10-01 09:46:07 +00:00
|
|
|
// "backdate" its `changed_at` revision to be the same as the
|
2018-09-29 12:14:58 +00:00
|
|
|
// old value.
|
|
|
|
if let Some(QueryState::Memoized(old_memo)) = &old_value {
|
2018-10-06 17:13:30 +00:00
|
|
|
if old_memo.value.as_ref() == Some(&stamped_value.value) {
|
|
|
|
assert!(old_memo.changed_at <= stamped_value.changed_at);
|
|
|
|
stamped_value.changed_at = old_memo.changed_at;
|
2018-09-29 12:14:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-28 15:04:52 +00:00
|
|
|
{
|
2018-10-06 17:13:30 +00:00
|
|
|
let value = if self.should_memoize_value(key) {
|
|
|
|
Some(stamped_value.value.clone())
|
|
|
|
} else {
|
|
|
|
None
|
|
|
|
};
|
2018-09-28 18:02:39 +00:00
|
|
|
let mut map_write = self.map.write();
|
2018-10-01 10:02:00 +00:00
|
|
|
self.overwrite_placeholder(
|
|
|
|
&mut map_write,
|
|
|
|
key,
|
2018-09-30 10:04:09 +00:00
|
|
|
QueryState::Memoized(Memo {
|
2018-10-06 17:13:30 +00:00
|
|
|
changed_at: stamped_value.changed_at,
|
|
|
|
value,
|
2018-09-29 12:14:58 +00:00
|
|
|
inputs,
|
|
|
|
verified_at: revision_now,
|
2018-09-29 11:24:53 +00:00
|
|
|
}),
|
|
|
|
);
|
2018-09-28 15:04:52 +00:00
|
|
|
}
|
|
|
|
|
2018-10-01 09:49:18 +00:00
|
|
|
Ok(stamped_value)
|
2018-09-30 10:04:09 +00:00
|
|
|
}
|
2018-10-01 10:02:00 +00:00
|
|
|
|
|
|
|
fn overwrite_placeholder(
|
|
|
|
&self,
|
2018-10-05 08:54:51 +00:00
|
|
|
map_write: &mut FxHashMap<Q::Key, QueryState<DB, Q>>,
|
2018-10-01 10:02:00 +00:00
|
|
|
key: &Q::Key,
|
2018-10-05 08:54:51 +00:00
|
|
|
value: QueryState<DB, Q>,
|
2018-10-01 10:02:00 +00:00
|
|
|
) {
|
|
|
|
let old_value = map_write.insert(key.clone(), value);
|
|
|
|
assert!(
|
|
|
|
match old_value {
|
|
|
|
Some(QueryState::InProgress) => true,
|
|
|
|
_ => false,
|
|
|
|
},
|
|
|
|
"expected in-progress state",
|
|
|
|
);
|
|
|
|
}
|
2018-10-06 17:13:30 +00:00
|
|
|
|
|
|
|
fn should_memoize_value(&self, key: &Q::Key) -> bool {
|
2018-10-09 12:39:41 +00:00
|
|
|
MP::should_memoize_value(key)
|
2018-10-06 17:13:30 +00:00
|
|
|
}
|
2018-09-30 10:04:09 +00:00
|
|
|
}
|
|
|
|
|
2018-10-09 12:39:41 +00:00
|
|
|
impl<DB, Q, MP> QueryStorageOps<DB, Q> for WeakMemoizedStorage<DB, Q, MP>
|
2018-09-30 10:04:09 +00:00
|
|
|
where
|
2018-10-05 08:59:10 +00:00
|
|
|
Q: QueryFunction<DB>,
|
2018-10-05 08:54:51 +00:00
|
|
|
DB: Database,
|
2018-10-09 12:39:41 +00:00
|
|
|
MP: MemoizationPolicy<DB, Q>,
|
2018-09-30 10:04:09 +00:00
|
|
|
{
|
|
|
|
fn try_fetch<'q>(
|
|
|
|
&self,
|
2018-10-05 08:54:51 +00:00
|
|
|
db: &'q DB,
|
2018-09-30 10:04:09 +00:00
|
|
|
key: &Q::Key,
|
2018-10-05 08:54:51 +00:00
|
|
|
descriptor: &DB::QueryDescriptor,
|
2018-09-30 10:04:09 +00:00
|
|
|
) -> Result<Q::Value, CycleDetected> {
|
2018-10-05 08:54:51 +00:00
|
|
|
let StampedValue { value, changed_at } = self.read(db, key, &descriptor)?;
|
2018-09-30 11:28:22 +00:00
|
|
|
|
2018-10-05 08:54:51 +00:00
|
|
|
db.salsa_runtime().report_query_read(descriptor, changed_at);
|
2018-09-30 11:28:22 +00:00
|
|
|
|
|
|
|
Ok(value)
|
2018-09-30 10:04:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn maybe_changed_since(
|
|
|
|
&self,
|
2018-10-05 08:54:51 +00:00
|
|
|
db: &'q DB,
|
2018-09-30 10:04:09 +00:00
|
|
|
revision: Revision,
|
|
|
|
key: &Q::Key,
|
2018-10-05 08:54:51 +00:00
|
|
|
descriptor: &DB::QueryDescriptor,
|
2018-09-30 10:04:09 +00:00
|
|
|
) -> bool {
|
2018-10-05 08:54:51 +00:00
|
|
|
let revision_now = db.salsa_runtime().current_revision();
|
2018-09-30 11:28:22 +00:00
|
|
|
|
|
|
|
debug!(
|
|
|
|
"{:?}({:?})::maybe_changed_since(revision={:?}, revision_now={:?})",
|
|
|
|
Q::default(),
|
|
|
|
key,
|
|
|
|
revision,
|
|
|
|
revision_now,
|
|
|
|
);
|
|
|
|
|
2018-10-06 17:13:30 +00:00
|
|
|
let value = {
|
|
|
|
let map_read = self.map.upgradable_read();
|
2018-09-30 10:04:09 +00:00
|
|
|
match map_read.get(key) {
|
|
|
|
None | Some(QueryState::InProgress) => return true,
|
|
|
|
Some(QueryState::Memoized(memo)) => {
|
2018-10-06 17:13:30 +00:00
|
|
|
// If our memo is still up to date, then check if we've
|
|
|
|
// changed since the revision.
|
|
|
|
if memo.verified_at == revision_now {
|
|
|
|
return memo.changed_at > revision;
|
|
|
|
}
|
|
|
|
if memo.value.is_some() {
|
|
|
|
// Otherwise, if we cache values, fall back to the full read to compute the result.
|
|
|
|
drop(memo);
|
|
|
|
drop(map_read);
|
|
|
|
return match self.read(db, key, descriptor) {
|
|
|
|
Ok(v) => v.changed_at > revision,
|
|
|
|
Err(CycleDetected) => true,
|
|
|
|
};
|
2018-09-30 10:04:09 +00:00
|
|
|
}
|
|
|
|
}
|
2018-10-06 17:13:30 +00:00
|
|
|
};
|
|
|
|
// If, however, we don't cache values, then optimistically
|
|
|
|
// try to advance `verified_at` by walking the inputs.
|
|
|
|
let mut map_write = RwLockUpgradableReadGuard::upgrade(map_read);
|
|
|
|
map_write.insert(key.clone(), QueryState::InProgress)
|
|
|
|
};
|
2018-09-30 10:04:09 +00:00
|
|
|
|
2018-10-06 17:13:30 +00:00
|
|
|
let mut memo = match value {
|
|
|
|
Some(QueryState::Memoized(memo)) => memo,
|
|
|
|
_ => unreachable!(),
|
|
|
|
};
|
|
|
|
|
|
|
|
if memo
|
|
|
|
.inputs
|
|
|
|
.iter()
|
|
|
|
.all(|old_input| !old_input.maybe_changed_since(db, memo.verified_at))
|
|
|
|
{
|
|
|
|
memo.verified_at = revision_now;
|
|
|
|
self.overwrite_placeholder(&mut self.map.write(), key, QueryState::Memoized(memo));
|
|
|
|
return false;
|
2018-09-30 10:04:09 +00:00
|
|
|
}
|
2018-10-06 17:13:30 +00:00
|
|
|
|
|
|
|
// Just remove the existing entry. It's out of date.
|
|
|
|
self.map.write().remove(key);
|
|
|
|
|
|
|
|
true
|
2018-09-28 15:04:52 +00:00
|
|
|
}
|
|
|
|
}
|
2018-10-05 19:23:05 +00:00
|
|
|
|
2018-10-09 12:39:41 +00:00
|
|
|
impl<DB, Q, MP> UncheckedMutQueryStorageOps<DB, Q> for WeakMemoizedStorage<DB, Q, MP>
|
2018-10-05 19:23:05 +00:00
|
|
|
where
|
|
|
|
Q: QueryFunction<DB>,
|
|
|
|
DB: Database,
|
2018-10-09 12:39:41 +00:00
|
|
|
MP: MemoizationPolicy<DB, Q>,
|
2018-10-05 19:23:05 +00:00
|
|
|
{
|
|
|
|
fn set_unchecked(&self, db: &DB, key: &Q::Key, value: Q::Value) {
|
|
|
|
let key = key.clone();
|
|
|
|
|
|
|
|
let mut map_write = self.map.write();
|
|
|
|
|
|
|
|
let changed_at = db.salsa_runtime().current_revision();
|
|
|
|
|
|
|
|
map_write.insert(
|
|
|
|
key,
|
|
|
|
QueryState::Memoized(Memo {
|
2018-10-06 17:13:30 +00:00
|
|
|
value: Some(value),
|
|
|
|
changed_at,
|
2018-10-05 19:23:05 +00:00
|
|
|
inputs: QueryDescriptorSet::new(),
|
|
|
|
verified_at: changed_at,
|
|
|
|
}),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|