update LRU -> Lru
This commit is contained in:
parent
015418fccb
commit
f729ea3540
3 changed files with 4 additions and 4 deletions
6
src/cache/Cache.zig
vendored
6
src/cache/Cache.zig
vendored
|
|
@ -1,10 +1,10 @@
|
|||
const std = @import("std");
|
||||
const LRU = @import("LRU.zig");
|
||||
const Lru = @import("Lru.zig");
|
||||
|
||||
const Cache = @This();
|
||||
|
||||
allocator: std.mem.Allocator,
|
||||
lru: LRU,
|
||||
lru: Lru,
|
||||
cache_dir: []const u8,
|
||||
file_threshold: usize,
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ pub fn init(allocator: std.mem.Allocator, config: Config) !Cache {
|
|||
|
||||
return Cache{
|
||||
.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),
|
||||
.file_threshold = config.file_threshold,
|
||||
};
|
||||
|
|
|
|||
0
src/cache/LRU.zig → src/cache/Lru.zig
vendored
0
src/cache/LRU.zig → src/cache/Lru.zig
vendored
|
|
@ -100,7 +100,7 @@ pub fn main() !void {
|
|||
test {
|
||||
std.testing.refAllDecls(@This());
|
||||
_ = @import("config.zig");
|
||||
_ = @import("cache/LRU.zig");
|
||||
_ = @import("cache/Lru.zig");
|
||||
_ = @import("weather/mock.zig");
|
||||
_ = @import("http/RateLimiter.zig");
|
||||
_ = @import("http/query.zig");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue