Skip to content

Commit eac571b

Browse files
committed
fix(v10.3): Zig 0.15 API fixes for directory iteration
- golden_db.zig: openIterableDir() → openDir() (Zig 0.15 API) - golden_db.zig: iterate(null) → iterate() - ralph_cli.zig: Fix updateWithCycle method call (SystemStatsCollector) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ef71681 commit eac571b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/vibeec/golden_db.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ pub const GoldenDB = struct {
191191
var added: usize = 0;
192192

193193
// Open directory
194-
var dir = std.fs.cwd().openIterableDir(gen_dir, .{}) catch |err| {
194+
var dir = std.fs.cwd().openDir(gen_dir, .{}) catch |err| {
195195
std.log.warn("Failed to open directory '{s}': {}", .{gen_dir, err});
196196
return 0;
197197
};
198198
defer dir.close();
199199

200-
var iter = dir.iterate(null);
200+
var iter = dir.iterate();
201201
while (try iter.next()) |entry| {
202202
if (!std.mem.endsWith(u8, entry.name, ".zig")) continue;
203203

trinity-nexus/tools/src/ralph_cli.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ fn runSwarmMonitor(allocator: Allocator, verbose: bool, live: bool, use_real_dht
373373
mock_peers,
374374
watch.dht_stats.triples_stored,
375375
);
376-
// Update with mock cycle data
377-
system_stats.SystemStats.updateWithCycle(&sys_stats, mock_tick, 7);
376+
// Update with mock cycle data (method of collector)
377+
system_stats.SystemStatsCollector.updateWithCycle(&sys_stats, mock_tick, 7);
378378

379379
// Process health checks and send RICH alerts with system information
380380
try alerts.processAndAlertRich(

0 commit comments

Comments
 (0)