update LRU -> Lru

This commit is contained in:
Emil Lerch 2025-12-18 13:24:57 -08:00
parent 015418fccb
commit f729ea3540
Signed by: lobo
GPG key ID: A7B62D657EF764F8
3 changed files with 4 additions and 4 deletions

6
src/cache/Cache.zig vendored
View file

@ -1,10 +1,10 @@
const std = @import("std"); const std = @import("std");
const LRU = @import("LRU.zig"); const Lru = @import("Lru.zig");
const Cache = @This(); const Cache = @This();
allocator: std.mem.Allocator, allocator: std.mem.Allocator,
lru: LRU, lru: Lru,
cache_dir: []const u8, cache_dir: []const u8,
file_threshold: usize, file_threshold: usize,
@ -21,7 +21,7 @@ pub fn init(allocator: std.mem.Allocator, config: Config) !Cache {
return Cache{ return Cache{
.allocator = allocator, .allocator = allocator,
.lru = try LRU.init(allocator, config.max_entries), .lru = try Lru.init(allocator, config.max_entries),
.cache_dir = try allocator.dupe(u8, config.cache_dir), .cache_dir = try allocator.dupe(u8, config.cache_dir),
.file_threshold = config.file_threshold, .file_threshold = config.file_threshold,
}; };

View file

@ -100,7 +100,7 @@ pub fn main() !void {
test { test {
std.testing.refAllDecls(@This()); std.testing.refAllDecls(@This());
_ = @import("config.zig"); _ = @import("config.zig");
_ = @import("cache/LRU.zig"); _ = @import("cache/Lru.zig");
_ = @import("weather/mock.zig"); _ = @import("weather/mock.zig");
_ = @import("http/RateLimiter.zig"); _ = @import("http/RateLimiter.zig");
_ = @import("http/query.zig"); _ = @import("http/query.zig");