mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
PVF timeouts follow-up (#6151)
* Rename timeout consts and timeout parameter; bump leniency * Update implementor's guide with info about PVFs * Make glossary a bit easier to read * Add a note to LENIENT_PREPARATION_TIMEOUT * Remove PVF-specific section from glossary * Fix some typos
This commit is contained in:
@@ -96,7 +96,7 @@ pub enum ArtifactState {
|
||||
/// That means that the artifact should be accessible through the path obtained by the artifact
|
||||
/// id (unless, it was removed externally).
|
||||
Prepared {
|
||||
/// The time when the artifact was the last time needed.
|
||||
/// The time when the artifact was last needed.
|
||||
///
|
||||
/// This is updated when we get the heads up for this artifact or when we just discover
|
||||
/// this file.
|
||||
@@ -120,7 +120,7 @@ impl Artifacts {
|
||||
///
|
||||
/// The recognized artifacts will be filled in the table and unrecognized will be removed.
|
||||
pub async fn new(cache_path: &Path) -> Self {
|
||||
// Make sure that the cache path directory and all it's parents are created.
|
||||
// Make sure that the cache path directory and all its parents are created.
|
||||
// First delete the entire cache. Nodes are long-running so this should populate shortly.
|
||||
let _ = async_std::fs::remove_dir_all(cache_path).await;
|
||||
let _ = async_std::fs::create_dir_all(cache_path).await;
|
||||
|
||||
Reference in New Issue
Block a user