aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/api_client.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-01-17 09:58:09 +0000
committerGitHub <noreply@github.com>2024-01-17 09:58:09 +0000
commitd9317a1a9c14dd1919f3e04537b01d5a14f8aaea (patch)
tree8a338df6a2e534a3f694fd93852abbf716e1fbcc /atuin-client/src/api_client.rs
parentStop control characters being printed to terminal (#1576) (diff)
downloadatuin-d9317a1a9c14dd1919f3e04537b01d5a14f8aaea.zip
feat: make deleting from the UI work with record store sync (#1580)
* feat: make deleting from the UI work with record store sync * sort cli delete too * teeny bit more logs
Diffstat (limited to 'atuin-client/src/api_client.rs')
-rw-r--r--atuin-client/src/api_client.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/atuin-client/src/api_client.rs b/atuin-client/src/api_client.rs
index 7b373599..affb3c98 100644
--- a/atuin-client/src/api_client.rs
+++ b/atuin-client/src/api_client.rs
@@ -286,6 +286,8 @@ impl<'a> Client<'a> {
let url = format!("{}/api/v0/record", self.sync_addr);
let url = Url::parse(url.as_str())?;
+ debug!("uploading {} records to {url}", records.len());
+
let resp = self.client.post(url).json(records).send().await?;
handle_resp_error(resp).await?;