From 72d6f6970c4542e62956ed610e8cd25f8bcf493c Mon Sep 17 00:00:00 2001 From: Sobeston <15335529+Sobeston@users.noreply.github.com> Date: Thu, 16 Jan 2025 03:55:06 +0000 Subject: [PATCH] make style check happy --- src/accountsdb/buffer_pool.zig | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/accountsdb/buffer_pool.zig b/src/accountsdb/buffer_pool.zig index 13f6dff92..d5920b008 100644 --- a/src/accountsdb/buffer_pool.zig +++ b/src/accountsdb/buffer_pool.zig @@ -292,7 +292,9 @@ pub const BufferPool = struct { const did_remove = blk: { const frame_map, var frame_map_lg = self.frame_map_rw.writeWithLock(); defer frame_map_lg.unlock(); - break :blk frame_map.remove(@bitCast(self.frames_metadata.key[evicted].load(.acquire))); + break :blk frame_map.remove( + @bitCast(self.frames_metadata.key[evicted].load(.acquire)), + ); }; if (!did_remove) { std.debug.panic( @@ -561,11 +563,19 @@ pub const FramesMetadata = struct { errdefer allocator.free(freq); @memset(freq, 0); - const in_queue = try allocator.alignedAlloc(std.atomic.Value(InQueue), std.mem.page_size, num_frames); + const in_queue = try allocator.alignedAlloc( + std.atomic.Value(InQueue), + std.mem.page_size, + num_frames, + ); errdefer allocator.free(in_queue); @memset(in_queue, std.atomic.Value(InQueue).init(.none)); - const size = try allocator.alignedAlloc(std.atomic.Value(u16), std.mem.page_size, num_frames); + const size = try allocator.alignedAlloc( + std.atomic.Value(u16), + std.mem.page_size, + num_frames, + ); errdefer allocator.free(size); @memset(size, std.atomic.Value(u16).init(0));