Fix core test (#2386)

* Fix core test

* Import CompressedCRDTOperations

---------

Co-authored-by: Ericson "Fogo" Soares <ericson.ds999@gmail.com>
This commit is contained in:
Vítor Vasconcellos 2024-04-24 20:37:38 -03:00 committed by GitHub
parent 57b0139240
commit 2c777e53f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -144,7 +144,7 @@ async fn main() {
}
}
#[allow(unused)]
#[cfg(not(feature = "assets"))]
let state = AppState { auth };
let (node, router) = match Node::new(

View file

@ -1,5 +1,6 @@
use sd_core_sync::*;
use sd_prisma::prisma;
use sd_sync::CompressedCRDTOperations;
use sd_utils::uuid_to_bytes;
use prisma_client_rust::chrono::Utc;
@ -122,7 +123,7 @@ impl Instance {
ingest
.event_tx
.send(ingest::Event::Messages(ingest::MessagesEvent {
messages,
messages: CompressedCRDTOperations::new(messages),
has_more: false,
instance_id: instance1.id,
}))