~sircmpwn/himitsu-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 2

[PATCH] hiq: use himitsu::client to connect to daemon

Details
Message ID
<20230324010908.63998-1-sam@samnystrom.dev>
DKIM signature
missing
Download raw message
Patch: +11 -7
---
 cmd/hiq/main.ha | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/cmd/hiq/main.ha b/cmd/hiq/main.ha
index ad0460e..9f2b5e3 100644
--- a/cmd/hiq/main.ha
+++ b/cmd/hiq/main.ha
@@ -74,16 +74,20 @@ export fn main() void = {
		};
	};

	let buf = path::init();
	// TODO: Bubble up dirs::runtime errors
	const sockpath = path::set(&buf, dirs::runtime()!, "himitsu")!;
	let conn = match (unix::connect(sockpath)) {
	let conn = match (client::connect()) {
	case let s: net::socket =>
		yield s;
	case errors::noentry =>
		fmt::fatal("error: himitsud connection failed (is it running?)");
	case let e: client::hierror =>
		fmt::fatal(e);
	case let e: io::error =>
		fmt::fatal("error:", io::strerror(e));
	case let e: net::error =>
		fmt::fatal("error:", net::strerror(e));
		match (e) {
		case errors::noentry =>
			fmt::fatal("error: himitsud connection failed (is it running?)");
		case =>
			fmt::fatal("error:", net::strerror(e));
		};
	};
	defer io::close(conn)!;

-- 
2.39.2
Details
Message ID
<1a55f8cf-dd8a-3eaa-46cb-6bbf6a3d26ab@strohwolke.at>
In-Reply-To
<20230324010908.63998-1-sam@samnystrom.dev> (view parent)
DKIM signature
missing
Download raw message
Applied. Thanks!
Details
Message ID
<50399e0b516178aec662fddfe5c94326@samnystrom.dev>
In-Reply-To
<1a55f8cf-dd8a-3eaa-46cb-6bbf6a3d26ab@strohwolke.at> (view parent)
DKIM signature
missing
Download raw message
The v2 of this patch was actually nacked by Drew, I've sent

[PATCH himitsu] hiq: use himitsu::client to run queries

which supersedes this and rewrites a lot more of hiq.
Details
Message ID
<4149a467-cae3-5e26-df97-c12fd91e6a85@strohwolke.at>
In-Reply-To
<50399e0b516178aec662fddfe5c94326@samnystrom.dev> (view parent)
DKIM signature
missing
Download raw message
On 5/5/23 14:44, sam@samnystrom.dev wrote:
> The v2 of this patch was actually nacked by Drew, I've sent
> 
> [PATCH himitsu] hiq: use himitsu::client to run queries
> 
> which supersedes this and rewrites a lot more of hiq.

Ups. I've reverted it.
Reply to thread Export thread (mbox)