Rename client.zig to curl.zig
This commit is contained in:
parent
ed7a9b8eb4
commit
75a3cf2a97
|
@ -4,9 +4,11 @@ const json = std.json;
|
|||
|
||||
const sqlite = @import("sqlite.zig");
|
||||
const twitch = @import("twitch.zig");
|
||||
const Client = @import("client.zig").Client;
|
||||
const curl = @import("curl.zig");
|
||||
const webhook = @import("webhook.zig");
|
||||
|
||||
const Client = curl.Client;
|
||||
|
||||
const Config = struct {
|
||||
token: []const u8,
|
||||
client_id: []const u8,
|
||||
|
|
|
@ -102,7 +102,6 @@ pub const Client = struct {
|
|||
const res = json.parse(T, &stream, .{ .allocator = self.allocator, .ignore_unknown_fields = true });
|
||||
|
||||
response_buffer.deinit();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
const std = @import("std");
|
||||
const json = std.json;
|
||||
|
||||
const Client = @import("client.zig").Client;
|
||||
const Client = @import("curl.zig").Client;
|
||||
const App = @import("app.zig");
|
||||
|
||||
pub var app: ?App = null;
|
||||
|
|
Loading…
Reference in New Issue