Skip to content

Commit

Permalink
Fix crates local index state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
avrong committed Mar 28, 2021
1 parent c8cd309 commit 691fed9
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -267,7 +267,10 @@ class CratesLocalIndexServiceImpl
}

companion object {
data class CratesLocalIndexState(val indexedCommitHash: String = "")
data class CratesLocalIndexState(
// Should be mutable to enable field serialization and saving
var indexedCommitHash: String = ""
)

private val corruptionMarkerFile: Path
get() = baseCratesLocalRegistryDir.resolve(CORRUPTION_MARKER_NAME)
Expand Down

0 comments on commit 691fed9

Please sign in to comment.