Skip to content

Commit

Permalink
refactor: Synthesizerの実装をInner<_, impl Async>に集約する
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Oct 30, 2024
1 parent 5641e37 commit 8118164
Show file tree
Hide file tree
Showing 5 changed files with 760 additions and 410 deletions.
8 changes: 4 additions & 4 deletions crates/voicevox_core/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ mod tests {
},
);
let model = &crate::nonblocking::VoiceModelFile::sample().await.unwrap();
let model_contents = &model.read_inference_models().await.unwrap();
let result = status.insert_model(model.header(), model_contents);
let model_contents = &model.inner().read_inference_models().await.unwrap();
let result = status.insert_model(model.inner().header(), model_contents);
assert_debug_fmt_eq!(Ok(()), result);
assert_eq!(1, status.loaded_models.lock().unwrap().0.len());
}
Expand All @@ -431,8 +431,8 @@ mod tests {
},
);
let vvm = &crate::nonblocking::VoiceModelFile::sample().await.unwrap();
let model_header = vvm.header();
let model_contents = &vvm.read_inference_models().await.unwrap();
let model_header = vvm.inner().header();
let model_contents = &vvm.inner().read_inference_models().await.unwrap();
assert!(
!status.is_loaded_model(model_header.manifest.id),
"model should not be loaded"
Expand Down
Loading

0 comments on commit 8118164

Please sign in to comment.