We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb8e23 commit 4ce83d0Copy full SHA for 4ce83d0
linera-storage/src/migration.rs
@@ -197,9 +197,10 @@ where
197
Ok(None)
198
}
199
200
+ /// Assert that the storage is at the last version (or not yet initialized).
201
pub async fn assert_is_migrated_storage(&self) -> Result<(), ViewError> {
202
let state = self.get_storage_state().await?;
- assert!(matches!(state, Some(SchemaVersion::Version1)));
203
+ assert!(matches!(state, None | Some(SchemaVersion::Version1)));
204
Ok(())
205
206
0 commit comments