(
&mut self,
delta: &RepoStateDelta,
encoding_version: u8,
)
| 479 | } |
| 480 | |
| 481 | fn put_repo_state_delta( |
| 482 | &mut self, |
| 483 | delta: &RepoStateDelta, |
| 484 | encoding_version: u8, |
| 485 | ) -> Result<(), OperationCodecError> { |
| 486 | delta.validate_canonical()?; |
| 487 | self.put_repo_state(&delta.after)?; |
| 488 | if encoding_version == OPERATION_VERSION_V2 { |
| 489 | self.put_count(delta.metadata.len(), "metadata transitions")?; |
| 490 | for transition in &delta.metadata { |
| 491 | self.put_metadata_transition(transition)?; |
| 492 | } |
| 493 | } |
| 494 | self.put_count(delta.effects.len(), "operation effects")?; |
| 495 | for effect in &delta.effects { |
| 496 | self.put_effect_plan(effect)?; |
| 497 | } |
| 498 | Ok(()) |
| 499 | } |
| 500 | |
| 501 | fn put_metadata_transition( |
| 502 | &mut self, |
no test coverage detected