forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: assorted cleanups of store
* use consistent spelling for `io::Reslut` * repplace `e.into()` with more explicit `io::Error::from` * implement From rather than Into * reduce minore code duplication by delegating to existing functions * use Arc::clone to make it explicit flow around store's identity * use buffered writer when dumping store to a file * fix latent bug around comparing wide pointers rust-lang/rust#69757. I thing we should not be hit by that due to full LTO, but that was a scary one. * remove some extra clones when working with cache
- Loading branch information
Showing
2 changed files
with
65 additions
and
79 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