Skip to content

Commit

Permalink
Fix core test (#2386)
Browse files Browse the repository at this point in the history
* Fix core test

* Import CompressedCRDTOperations

---------

Co-authored-by: Ericson "Fogo" Soares <[email protected]>
  • Loading branch information
HeavenVolkoff and fogodev committed Apr 24, 2024
1 parent 57b0139 commit 2c777e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async fn main() {
}
}

#[allow(unused)]
#[cfg(not(feature = "assets"))]
let state = AppState { auth };

let (node, router) = match Node::new(
Expand Down
3 changes: 2 additions & 1 deletion core/crates/sync/tests/mock_instance.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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,
}))
Expand Down

0 comments on commit 2c777e5

Please sign in to comment.