@@ -33,7 +33,7 @@ use spacetimedb_lib::{ConnectionId, Identity};
3333use spacetimedb_paths:: server:: SnapshotDirPath ;
3434use spacetimedb_primitives:: { ColId , ColList , ConstraintId , IndexId , SequenceId , TableId , ViewId } ;
3535use spacetimedb_sats:: memory_usage:: MemoryUsage ;
36- use spacetimedb_sats:: { bsatn , AlgebraicValue , ProductValue } ;
36+ use spacetimedb_sats:: { AlgebraicValue , ProductValue } ;
3737use spacetimedb_schema:: table_name:: TableName ;
3838use spacetimedb_schema:: {
3939 reducer_name:: ReducerName ,
@@ -48,7 +48,6 @@ use spacetimedb_table::{
4848use std:: borrow:: Cow ;
4949use std:: sync:: Arc ;
5050use std:: time:: { Duration , Instant } ;
51- use thiserror:: Error ;
5251
5352pub type Result < T > = std:: result:: Result < T , DatastoreError > ;
5453
@@ -999,18 +998,6 @@ impl Locking {
999998 }
1000999}
10011000
1002- #[ derive( Debug , Error ) ]
1003- pub enum ReplayError {
1004- #[ error( "Expected tx offset {expected}, encountered {encountered}" ) ]
1005- InvalidOffset { expected : u64 , encountered : u64 } ,
1006- #[ error( transparent) ]
1007- Decode ( #[ from] bsatn:: DecodeError ) ,
1008- #[ error( transparent) ]
1009- Db ( #[ from] DatastoreError ) ,
1010- #[ error( transparent) ]
1011- Any ( #[ from] anyhow:: Error ) ,
1012- }
1013-
10141001/// Construct a [`Metadata`] from the given [`RowRef`],
10151002/// reading only the columns necessary to construct the value.
10161003fn metadata_from_row ( row : RowRef < ' _ > ) -> Result < Metadata > {
@@ -1041,7 +1028,6 @@ pub(crate) mod tests {
10411028 } ;
10421029 use crate :: traits:: { IsolationLevel , MutTx } ;
10431030 use crate :: Result ;
1044- use bsatn:: to_vec;
10451031 use core:: { fmt, mem} ;
10461032 use itertools:: Itertools ;
10471033 use pretty_assertions:: { assert_eq, assert_matches} ;
@@ -1053,7 +1039,7 @@ pub(crate) mod tests {
10531039 use spacetimedb_lib:: { resolved_type_via_v9, ScheduleAt , TimeDuration } ;
10541040 use spacetimedb_primitives:: { col_list, ArgId , ColId , ScheduleId , ViewId } ;
10551041 use spacetimedb_sats:: algebraic_value:: ser:: value_serialize;
1056- use spacetimedb_sats:: bsatn:: ToBsatn ;
1042+ use spacetimedb_sats:: bsatn:: { to_vec , ToBsatn } ;
10571043 use spacetimedb_sats:: layout:: RowTypeLayout ;
10581044 use spacetimedb_sats:: raw_identifier:: RawIdentifier ;
10591045 use spacetimedb_sats:: { product, AlgebraicType , GroundSpacetimeType , SumTypeVariant , SumValue } ;
0 commit comments