Remove the set timestamp stuff i guess
@@ -124,14 +124,13 @@ impl GraphMutationManager {
|| async move {
let property_value = property_value as i64;
let tenant_ks = tenant_keyspace_name(tenant_id);
- let mut query = Query::new(format!(
+ let query = Query::new(format!(
r"
INSERT INTO {tenant_ks}.{MAX_U_64_TABLE_NAME}
(uid, populated_field, value)
VALUES (?, ?, ?)
"
));
- query.set_timestamp(Some(property_value));
self.scylla_client
.execute(query, &(uid.as_i64(), property_name.value, property_value))
@@ -160,7 +159,7 @@ impl GraphMutationManager {
|| async move {
let property_value = property_value as i64;
let tenant_ks = tenant_keyspace_name(tenant_id);
- let mut query = Query::new(format!(
+ let query = Query::new(format!(
r"
INSERT INTO {tenant_ks}.{MIN_U_64_TABLE_NAME}
(uid, populated_field, value)
@@ -168,8 +167,6 @@ impl GraphMutationManager {
"
));
- query.set_timestamp(Some(-property_value));
-
self.scylla_client
.execute(query, &(uid.as_i64(), property_name.value, property_value))
.await?;
@@ -230,15 +227,13 @@ impl GraphMutationManager {
property_value,
|| async move {
let tenant_ks = tenant_keyspace_name(tenant_id);
- let mut query = Query::new(format!(
+ let query = Query::new(format!(
r"
INSERT INTO {tenant_ks}.{MAX_I_64_TABLE_NAME}
(uid, populated_field, value)
VALUES (?, ?, ?)
"
));
- query.set_timestamp(Some(property_value));
-
self.scylla_client
.execute(query, &(uid.as_i64(), property_name.value, property_value))
.await?;
@@ -265,7 +260,7 @@ impl GraphMutationManager {
property_value,
|| async move {
let tenant_ks = tenant_keyspace_name(tenant_id);
- let mut query = Query::new(format!(
+ let query = Query::new(format!(
r"
INSERT INTO {tenant_ks}.{MIN_I_64_TABLE_NAME}
(uid, populated_field, value)
@@ -273,8 +268,6 @@ impl GraphMutationManager {
"
));
- query.set_timestamp(Some(-property_value));
-
self.scylla_client
.execute(query, &(uid.as_i64(), property_name.value, property_value))
.await?;
