Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

219 B
Raw Blame
export function retryDelay(priorErrors: number): number {
  const base = Math.min(60_000, 15_000 * 2 ** Math.min(Math.max(0, priorErrors), 2));
  return Math.min(60_000, Math.round(base * (1 + Math.random() * 0.2)));
}