From 6a912cfcff22cc23cc6b42a3a1d072f316fca64b Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Tue, 16 Aug 2022 00:15:00 +0800 Subject: [PATCH] erase, store: wait for response --- cmd/docker-credential-himitsu/erase.ha | 2 +- cmd/docker-credential-himitsu/store.ha | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/docker-credential-himitsu/erase.ha b/cmd/docker-credential-himitsu/erase.ha index 9a11e77..eb7b820 100644 --- a/cmd/docker-credential-himitsu/erase.ha +++ b/cmd/docker-credential-himitsu/erase.ha @@ -15,5 +15,5 @@ fn erase(hi: net::socket) void = { query::pair { key = "secret", value = "", private = true, optional = false}, ], }; - client::query(hi, client::operation::DEL, &query, 0)!; + client::next(&client::query(hi, client::operation::DEL, &query, 0)!)!; }; diff --git a/cmd/docker-credential-himitsu/store.ha b/cmd/docker-credential-himitsu/store.ha index 5334b1e..41a292c 100644 --- a/cmd/docker-credential-himitsu/store.ha +++ b/cmd/docker-credential-himitsu/store.ha @@ -18,5 +18,5 @@ fn store(hi: net::socket) void = { query::pair { key = "secret", value = secret, private = true, optional = false}, ], }; - client::query(hi, client::operation::ADD, &query, 0)!; + client::next(&client::query(hi, client::operation::ADD, &query, 0)!)!; }; -- 2.45.2