mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 11:03:27 +00:00
Fix core test (#2386)
* Fix core test * Import CompressedCRDTOperations --------- Co-authored-by: Ericson "Fogo" Soares <ericson.ds999@gmail.com>
This commit is contained in:
parent
57b0139240
commit
2c777e53f1
|
@ -144,7 +144,7 @@ async fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
#[cfg(not(feature = "assets"))]
|
||||||
let state = AppState { auth };
|
let state = AppState { auth };
|
||||||
|
|
||||||
let (node, router) = match Node::new(
|
let (node, router) = match Node::new(
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use sd_core_sync::*;
|
use sd_core_sync::*;
|
||||||
use sd_prisma::prisma;
|
use sd_prisma::prisma;
|
||||||
|
use sd_sync::CompressedCRDTOperations;
|
||||||
use sd_utils::uuid_to_bytes;
|
use sd_utils::uuid_to_bytes;
|
||||||
|
|
||||||
use prisma_client_rust::chrono::Utc;
|
use prisma_client_rust::chrono::Utc;
|
||||||
|
@ -122,7 +123,7 @@ impl Instance {
|
||||||
ingest
|
ingest
|
||||||
.event_tx
|
.event_tx
|
||||||
.send(ingest::Event::Messages(ingest::MessagesEvent {
|
.send(ingest::Event::Messages(ingest::MessagesEvent {
|
||||||
messages,
|
messages: CompressedCRDTOperations::new(messages),
|
||||||
has_more: false,
|
has_more: false,
|
||||||
instance_id: instance1.id,
|
instance_id: instance1.id,
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue