🎨 Fix typos

This commit is contained in:
C-3PO 2018-07-04 20:11:04 +02:00
parent 14e73367c6
commit 94047006ec
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
8 changed files with 62 additions and 60 deletions

View file

@ -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[]> {

View file

@ -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