Get the last committed state, if exists.
(&self)
| 258 | |
| 259 | /// Get the last committed state, if exists. |
| 260 | fn get_committed_state(&self) -> Result<Option<AppState>> { |
| 261 | let tx = self.db.read(); |
| 262 | tx.get(&self.namespace, &AppStoreKey::State) |
| 263 | .context("get failed") |
| 264 | } |
| 265 | |
| 266 | /// Get the last committed state; return error if it doesn't exist. |
| 267 | fn committed_state(&self) -> Result<AppState> { |
no test coverage detected