format
This commit is contained in:
parent
56e8a641bf
commit
35eec21a0b
@ -80,11 +80,7 @@ async fn get(path: PathBuf) -> Result<Box<dyn Reader>, AssetReaderError> {
|
|||||||
}
|
}
|
||||||
use ureq::Agent;
|
use ureq::Agent;
|
||||||
|
|
||||||
static AGENT: LazyLock<Agent> = LazyLock::new(|| {
|
static AGENT: LazyLock<Agent> = LazyLock::new(|| Agent::config_builder().build().new_agent());
|
||||||
Agent::config_builder()
|
|
||||||
.build()
|
|
||||||
.new_agent()
|
|
||||||
});
|
|
||||||
|
|
||||||
match AGENT.get(str_path).call() {
|
match AGENT.get(str_path).call() {
|
||||||
Ok(mut response) => {
|
Ok(mut response) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user