Skip to content

Commit 08316d6

Browse files
committed
fix(client): ordering and unnecessary import
1 parent 9b3218e commit 08316d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/rust/src/dstack_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::{anyhow, Result};
1+
use anyhow::Result;
22
use hex::{encode as hex_encode, FromHexError};
33
use http_client_unix_domain_socket::{ClientUnix, Method};
44
use reqwest::Client;
@@ -258,10 +258,10 @@ impl DstackClient {
258258
) -> Result<GetTlsKeyResponse> {
259259
let data = json!({
260260
"subject": subject.unwrap_or_default(),
261+
"alt_names": alt_names.unwrap_or_default(),
261262
"usage_ra_tls": usage_ra_tls,
262263
"usage_server_auth": usage_server_auth,
263-
"usage_client_auth": usage_client_auth,
264-
"alt_names": alt_names.unwrap_or_default(),
264+
"usage_client_auth": usage_client_auth
265265
});
266266
let response = self.send_rpc_request("/GetTlsKey", &data).await?;
267267
let response = serde_json::from_value::<GetTlsKeyResponse>(response)?;

0 commit comments

Comments
 (0)