Check what dependencies are missing for a change. This is useful for determining what needs to be fetched from a remote before a change can be inserted. # Arguments `txn` - Read transaction `change` - The change to check # Returns A vector of missing dependency hashes (empty if all deps are present).
(
txn: &T,
change: &Change,
)
| 136 | /// |
| 137 | /// A vector of missing dependency hashes (empty if all deps are present). |
| 138 | pub fn check_missing_dependencies<T: GraphTxnT>( |
| 139 | txn: &T, |
| 140 | change: &Change, |
| 141 | ) -> InsertResult<Vec<Hash>> { |
| 142 | verify_dependencies(txn, change).map_err(|e| InsertError::Database(e.to_string())) |
| 143 | } |
| 144 | |
| 145 | /// Determine the order to insert a set of changes respecting dependencies. |
| 146 | /// |
nothing calls this directly
no test coverage detected