From f7c4169318ce6c2f17b03b13f54147e2cf63fc9c Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Sat, 8 Jun 2024 23:06:21 -0700 Subject: [PATCH] update zig-discord --- build.zig.zon | 4 ++-- src/main.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index ab0196e..daead45 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -3,8 +3,8 @@ .version = "0.0.0", .dependencies = .{ .@"zig-discord" = .{ - .url = "git+https://github.com/Beyley/zig-discord#34807ac5259a1fcbf6006c33c584a2d5f2c7c658", - .hash = "1220ef5998bfbd39924e63cb87db71406b690bbddb000bf5f70a1597829f4b67e324", + .url = "git+https://github.com/Beyley/zig-discord#900dd023c0a22357b5f5c58464f05d4403ccb02f", + .hash = "1220d704f8d738bee01de6e1e1388b0548c3390d5c07b120f71e62332f960b1e6f22", }, .zBoxer = .{ .url = "git+https://github.com/Beyley/zBoxer#b81c8b4de8eba47f2e0d27e56ebfaa10727c1dcc", diff --git a/src/main.zig b/src/main.zig index 4ae1ce0..479dd10 100644 --- a/src/main.zig +++ b/src/main.zig @@ -427,7 +427,7 @@ pub fn runApp(allocator: std.mem.Allocator) !void { } } -fn runRpcThread(rpc_client: *Rpc, app_id: []const u8) void { +fn runRpcThread(rpc_client: *Rpc, app_id: []const u8) !void { rpc_client.run(.{ .client_id = app_id, }) catch |err| { @@ -447,7 +447,7 @@ fn runRpcThread(rpc_client: *Rpc, app_id: []const u8) void { std.log.err("rpc client err: {s}", .{@errorName(err)}); - err catch unreachable; + return err; }; }