feat: add directory watcher to StaticFileProvider::read_only (#10701)

This commit is contained in:
joshieDo
2024-09-05 17:32:37 +01:00
committed by GitHub
parent 1ec5678081
commit e8128a3c85
9 changed files with 187 additions and 8 deletions

View File

@ -87,7 +87,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> EnvironmentArgs<C> {
),
AccessRights::RO => (
Arc::new(open_db_read_only(&db_path, self.db.database_args())?),
StaticFileProvider::read_only(sf_path)?,
StaticFileProvider::read_only(sf_path, false)?,
),
};

View File

@ -173,7 +173,7 @@ impl Command {
}
let static_files = iter_static_files(data_dir.static_files())?;
let static_file_provider = StaticFileProvider::read_only(data_dir.static_files())?;
let static_file_provider = StaticFileProvider::read_only(data_dir.static_files(), false)?;
let mut total_data_size = 0;
let mut total_index_size = 0;