From 99917d9f59a22b2adcb5a9c622d70c757d54a935 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 10 Aug 2023 12:14:50 +0200 Subject: [PATCH] Change timeOfRound comment to doc comment --- drand.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drand.ts b/drand.ts index 03a0c53..791aad7 100644 --- a/drand.ts +++ b/drand.ts @@ -22,9 +22,11 @@ export const drandUrls = [ const DRAND_GENESIS = 1677685200; const DRAND_ROUND_LENGTH = 3; -// Time of round in milliseconds. -// -// See TimeOfRound implementation: https://github.com/drand/drand/blob/eb36ba81e3f28c966f95bcd602f60e7ff8ef4c35/chain/time.go#L30-L33 +/** + * Time of round in milliseconds. + * + * See TimeOfRound implementation: https://github.com/drand/drand/blob/eb36ba81e3f28c966f95bcd602f60e7ff8ef4c35/chain/time.go#L30-L33 + */ export function timeOfRound(round: number): number { return (DRAND_GENESIS + (round - 1) * DRAND_ROUND_LENGTH) * 1000; }