@@ -60,14 +60,14 @@ pub struct CheckpointDiff<'a> {
60
60
61
61
#[ derive( Deserialize , Debug ) ]
62
62
pub 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,
65
65
}
66
66
67
67
#[ derive( Deserialize , Debug ) ]
68
68
pub 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,
71
71
pub priority : BucketPriority ,
72
72
}
73
73
@@ -77,21 +77,21 @@ pub struct BucketChecksum<'a> {
77
77
pub checksum : Checksum ,
78
78
pub priority : Option < BucketPriority > ,
79
79
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>,
83
83
}
84
84
85
85
#[ derive( Deserialize , Debug ) ]
86
86
pub struct DataLine < ' a > {
87
87
pub bucket : & ' a str ,
88
88
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>,
95
95
}
96
96
97
97
#[ derive( Deserialize , Debug ) ]
@@ -368,16 +368,19 @@ mod tests {
368
368
fn parse_checkpoint_complete ( ) {
369
369
assert_matches ! (
370
370
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
+ } )
372
374
) ;
375
+
373
376
}
374
377
375
378
#[ test]
376
379
fn parse_checkpoint_partially_complete ( ) {
377
380
assert_matches ! (
378
381
deserialize( r#"{"partial_checkpoint_complete": {"last_op_id": "10", "priority": 1}}"# ) ,
379
382
SyncLine :: CheckpointPartiallyComplete ( CheckpointPartiallyComplete {
380
- last_op_id: 10 ,
383
+ // last_op_id: 10,
381
384
priority: BucketPriority { number: 1 }
382
385
} )
383
386
) ;
@@ -397,8 +400,6 @@ mod tests {
397
400
} ;
398
401
399
402
assert_eq ! ( data. bucket, "bkt" ) ;
400
- assert_eq ! ( data. after, None ) ;
401
- assert_eq ! ( data. next_after, None ) ;
402
403
403
404
assert_eq ! ( data. data. len( ) , 1 ) ;
404
405
let entry = & data. data [ 0 ] ;
0 commit comments