From fe42fc9941925ff4288eb470c29781cc1661680b Mon Sep 17 00:00:00 2001 From: Dan Enman Date: Tue, 18 Jun 2024 23:07:21 -0300 Subject: [PATCH] feat: upgrade to dwn-sdk-js v0.3.7 --- crates/dwn-rs-stores/src/surrealdb/event_log.rs | 8 ++++---- crates/dwn-rs-stores/src/surrealdb/models.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/dwn-rs-stores/src/surrealdb/event_log.rs b/crates/dwn-rs-stores/src/surrealdb/event_log.rs index 7b94973..ea909d6 100644 --- a/crates/dwn-rs-stores/src/surrealdb/event_log.rs +++ b/crates/dwn-rs-stores/src/surrealdb/event_log.rs @@ -1,11 +1,11 @@ use async_trait::async_trait; -use dwn_rs_core::{MapValue, Value}; +use dwn_rs_core::MapValue; use surrealdb::sql::{Id, Table, Thing}; use ulid::Ulid; use crate::{ - Cursor, EventLog, EventLogError, Filters, MessageWatermark, Pagination, Query, QueryError, - QueryReturn, StoreError, SurrealDB, SurrealDBError, SurrealQuery, + Cursor, EventLog, EventLogError, Filters, MessageWatermark, Pagination, Query, QueryReturn, + StoreError, SurrealDB, SurrealDBError, SurrealQuery, }; use super::models::{CreateEvent, GetEvent}; @@ -78,7 +78,7 @@ impl EventLog for SurrealDB { .always_cursor() .page(Some(page)); - let (mut events, cursor) = qb.query().await?; + let (events, cursor) = qb.query().await?; Ok(QueryReturn { items: events.into_iter().map(|e| e.cid.to_string()).collect(), diff --git a/crates/dwn-rs-stores/src/surrealdb/models.rs b/crates/dwn-rs-stores/src/surrealdb/models.rs index 4bac29c..192c867 100644 --- a/crates/dwn-rs-stores/src/surrealdb/models.rs +++ b/crates/dwn-rs-stores/src/surrealdb/models.rs @@ -4,7 +4,7 @@ use crate::{CursorValue, MessageSort, MessageWatermark}; use dwn_rs_core::{MapValue, Value}; use ipld_core::cid::Cid; use serde::{Deserialize, Serialize}; -use surrealdb::sql::{Id, Thing}; +use surrealdb::sql::Thing; use ulid::Ulid; #[derive(Serialize, Deserialize, Debug)]