@@ -60,14 +60,14 @@ pub struct CheckpointDiff<'a> {
6060
6161#[ derive( Deserialize , Debug ) ]
6262pub struct CheckpointComplete {
63- #[ serde( deserialize_with = "deserialize_string_to_i64" ) ]
64- pub last_op_id : i64 ,
63+ // #[serde(deserialize_with = "deserialize_string_to_i64")]
64+ // pub last_op_id: i64,
6565}
6666
6767#[ derive( Deserialize , Debug ) ]
6868pub struct CheckpointPartiallyComplete {
69- #[ serde( deserialize_with = "deserialize_string_to_i64" ) ]
70- pub last_op_id : i64 ,
69+ // #[serde(deserialize_with = "deserialize_string_to_i64")]
70+ // pub last_op_id: i64,
7171 pub priority : BucketPriority ,
7272}
7373
@@ -77,21 +77,21 @@ pub struct BucketChecksum<'a> {
7777 pub checksum : Checksum ,
7878 pub priority : Option < BucketPriority > ,
7979 pub count : Option < i64 > ,
80- #[ serde( default ) ]
81- #[ serde( deserialize_with = "deserialize_optional_string_to_i64" ) ]
82- pub last_op_id : Option < i64 > ,
80+ // #[serde(default)]
81+ // #[serde(deserialize_with = "deserialize_optional_string_to_i64")]
82+ // pub last_op_id: Option<i64>,
8383}
8484
8585#[ derive( Deserialize , Debug ) ]
8686pub struct DataLine < ' a > {
8787 pub bucket : & ' a str ,
8888 pub data : Vec < OplogEntry < ' a > > ,
89- #[ serde( default ) ]
90- pub has_more : bool ,
91- #[ serde( default , borrow) ]
92- pub after : Option < & ' a str > ,
93- #[ serde( default , borrow) ]
94- pub next_after : Option < & ' a str > ,
89+ // #[serde(default)]
90+ // pub has_more: bool,
91+ // #[serde(default, borrow)]
92+ // pub after: Option<&'a str>,
93+ // #[serde(default, borrow)]
94+ // pub next_after: Option<&'a str>,
9595}
9696
9797#[ derive( Deserialize , Debug ) ]
@@ -368,16 +368,19 @@ mod tests {
368368 fn parse_checkpoint_complete ( ) {
369369 assert_matches ! (
370370 deserialize( r#"{"checkpoint_complete": {"last_op_id": "10"}}"# ) ,
371- SyncLine :: CheckpointComplete ( CheckpointComplete { last_op_id: 10 } )
371+ SyncLine :: CheckpointComplete ( CheckpointComplete {
372+ //last_op_id: 10
373+ } )
372374 ) ;
375+
373376 }
374377
375378 #[ test]
376379 fn parse_checkpoint_partially_complete ( ) {
377380 assert_matches ! (
378381 deserialize( r#"{"partial_checkpoint_complete": {"last_op_id": "10", "priority": 1}}"# ) ,
379382 SyncLine :: CheckpointPartiallyComplete ( CheckpointPartiallyComplete {
380- last_op_id: 10 ,
383+ // last_op_id: 10,
381384 priority: BucketPriority { number: 1 }
382385 } )
383386 ) ;
@@ -397,8 +400,6 @@ mod tests {
397400 } ;
398401
399402 assert_eq ! ( data. bucket, "bkt" ) ;
400- assert_eq ! ( data. after, None ) ;
401- assert_eq ! ( data. next_after, None ) ;
402403
403404 assert_eq ! ( data. data. len( ) , 1 ) ;
404405 let entry = & data. data [ 0 ] ;
0 commit comments