Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/github.hml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { parse } from "@stdlib/json";
import * as env from "@stdlib/env";
import { exists, read_file, write_file } from "@stdlib/fs";
import { sleep, now } from "@stdlib/time";
import { getpid } from "@stdlib/process";
import { get_pid } from "@stdlib/process";

// Retry configuration
let MAX_RETRIES = 4;
let INITIAL_BACKOFF_MS = 1000; // 1 second

// Generate a unique suffix for temp files using PID and timestamp
fn unique_suffix(): string {
let pid = getpid();
let pid = get_pid();
let ts = now();
return "" + pid + "_" + ts;
}
Expand Down
4 changes: 2 additions & 2 deletions src/installer.hml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { exists, read_file, write_file, make_dir, remove_dir, list_dir, is_dir } from "@stdlib/fs";
import { sha256 } from "@stdlib/hash";
import { fork, waitpid, exec, getpid } from "@stdlib/process";
import { fork, waitpid, exec, get_pid } from "@stdlib/process";
import { exit } from "@stdlib/env";
import { now } from "@stdlib/time";

Expand All @@ -15,7 +15,7 @@ let MAX_PARALLEL_DOWNLOADS = 4;

// Generate a unique suffix for temp directories using PID and timestamp
fn unique_suffix(): string {
let pid = getpid();
let pid = get_pid();
let ts = now();
return "" + pid + "_" + ts;
}
Expand Down