Sync instance data to other nodes
(&self, instance_id: &str, data: &InstanceData)
| 498 | |
| 499 | /// Sync instance data to other nodes |
| 500 | pub fn sync_instance(&self, instance_id: &str, data: &InstanceData) -> Result<()> { |
| 501 | self.persistent |
| 502 | .write() |
| 503 | .put_encoded(keys::inst(instance_id), data) |
| 504 | } |
| 505 | |
| 506 | /// Sync instance deletion to other nodes |
| 507 | pub fn sync_delete_instance(&self, instance_id: &str) -> Result<()> { |
no test coverage detected