Skip to content

Commit

Permalink
refactor: download logic
Browse files Browse the repository at this point in the history
  • Loading branch information
waynezhang committed Feb 15, 2025
1 parent d32e4ff commit a6473f8
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 204 deletions.
2 changes: 1 addition & 1 deletion src/cmd/server_cmd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn serve() !void {
const download_alloc = gpa.allocator();

utils.log.info("Start downloading missing dictionaries", .{});
dict_location.Location.Download.downloadDicts(
dict_location.downloadDicts(
download_alloc,
cfg.dictionaries,
cfg.dictionary_directory,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/update_cmd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn updateDicts() !void {
}

log.info("Start updating at {s}", .{cfg.dictionary_directory});
dict_location.Location.Download.downloadDicts(
dict_location.downloadDicts(
alloc,
cfg.dictionaries,
cfg.dictionary_directory,
Expand Down
Loading

0 comments on commit a6473f8

Please sign in to comment.