-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize client storage from the filesystem (#2194)
* `linera-core`: add `Persistent` trait * `linera-service`: use new `Persistent` trait * `linera-service`: don't forget to create the file for `persistent::File::new` * `linera-service`: refresh PRNG seed more to align with tests * `linera-service`: rename `Persistent` to `Persist` This is more in line both with Rust standard library traits, which tend to be transitive verbs, and also with the Rust trait naming conventions RFC rust-lang/rfcs#344, which states: > Prefer (transitive) verbs, nouns, and then adjectives; avoid > grammatical suffixes (like able). * `linera-service`: document `Persist` trait * `linera-service::persistent::File`: when an error occurs during error handling, do not hide the outer error * `linera_service::persistent`: single-space documentation Co-authored-by: Andreas Fackler <[email protected]> Signed-off-by: James Kay <[email protected]> * `linera-service`: mention bug #2053 * `linera_service::proxy`: replace `expect` with `?` * `linera_service::persistent`: use the indicative mood for function documentation --------- Signed-off-by: James Kay <[email protected]> Co-authored-by: Andreas Fackler <[email protected]>
- Loading branch information
Showing
13 changed files
with
349 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.