drop mut on some http client usages
thanks to commit 70142e607dda43fc778f39d52dc7bb3bba088cd3 from proxmox repos's proxmox-http crate Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2c64201e64
commit
0b232f2edc
@ -239,7 +239,7 @@ fn apt_get_changelog(param: Value) -> Result<Value, Error> {
|
||||
}
|
||||
|
||||
let proxy_config = read_and_update_proxy_config()?;
|
||||
let mut client = pbs_simple_http(proxy_config);
|
||||
let client = pbs_simple_http(proxy_config);
|
||||
|
||||
let changelog_url = &pkg_info[0].change_log_url;
|
||||
// FIXME: use 'apt-get changelog' for proxmox packages as well, once repo supports it
|
||||
|
@ -115,7 +115,7 @@ async fn register_subscription(
|
||||
None
|
||||
};
|
||||
|
||||
let mut client = pbs_simple_http(proxy_config);
|
||||
let client = pbs_simple_http(proxy_config);
|
||||
|
||||
let uri = "https://shop.proxmox.com/modules/servers/licensing/verify.php";
|
||||
let query = json_object_to_query(params)?;
|
||||
|
Loading…
Reference in New Issue
Block a user