tape: MediaPool::with_config() - remove name parameter

Not required, because config already contains the pool name.
This commit is contained in:
Dietmar Maurer
2020-12-18 08:14:24 +01:00
parent 26aa9aca40
commit 2afdc7f27d
2 changed files with 2 additions and 3 deletions

View File

@ -82,7 +82,6 @@ impl MediaPool {
/// Creates a new instance using the media pool configuration
pub fn with_config(
name: &str,
state_path: &Path,
config: &MediaPoolConfig,
) -> Result<Self, Error> {
@ -91,7 +90,7 @@ impl MediaPool {
let retention = config.retention.clone().unwrap_or(String::from("keep")).parse()?;
MediaPool::new(name, state_path, allocation, retention)
MediaPool::new(&config.name, state_path, allocation, retention)
}
/// Returns the pool name