🎨 Fix typos
This commit is contained in:
parent
14e73367c6
commit
94047006ec
8 changed files with 62 additions and 60 deletions
|
@ -31,7 +31,7 @@ import * as dns from 'dns';
|
|||
import { IDnsResult } from '../../interfaces/IDnsResult';
|
||||
|
||||
//TODO: send e-mail with the error
|
||||
const assert = (cond: boolean) => { if (!cond) { console.warn('Assert failed'); } };
|
||||
const assert = (condition: boolean) => { if (!condition) { console.warn('Assert failed'); } };
|
||||
|
||||
/** Looks up the given domain and returns a list of IP addresses, along with their time-to-live */
|
||||
async function resolveDns(domain: string): Promise<IDnsResult[]> {
|
||||
|
|
|
@ -15,7 +15,7 @@ async function heartbeatDns(domain: string) {
|
|||
//Get list of current patch servers
|
||||
const dnsResults = await resolveDns(domain);
|
||||
|
||||
//Remeber time when response came in
|
||||
//Remember time when response came in
|
||||
const now = Date.now() - startTime;
|
||||
|
||||
//Schedule next check based on time-to-live, but never longer than 1 minute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue