Skip to content

Commit 0e69357

Browse files
committed
Bring back function comment but not the parameter type.
1 parent 4180537 commit 0e69357

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/performance/src/services/remote_config_service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ function shouldLogAfterSampling(samplingRate: number): boolean {
271271
/**
272272
* True if event should be sent to Fl transport endpoint rather than CC transport endpoint.
273273
* rolloutPercent is in range [0.0, 100.0].
274+
* @param iid Installation ID which identifies a web app installed on client.
275+
* @param rolloutPercent the possibility of this app sending events to Fl endpoint.
276+
* @return true if this installation should send events to Fl endpoint.
274277
*/
275278
export function isDestFl(iid: string, rolloutPercent: number): boolean {
276279
if (iid.length === 0) {
@@ -280,6 +283,8 @@ export function isDestFl(iid: string, rolloutPercent: number): boolean {
280283
}
281284
/**
282285
* Generate integer value range in [0, 99]. Implementation from String.hashCode() in Java.
286+
* @param seed Same seed will generate consistent hash value using this algorithm.
287+
* @return Hash value in range [0, 99], generated from seed and hash algorithm.
283288
*/
284289
function getHashPercent(seed: string): number {
285290
let hash = 0;

0 commit comments

Comments
 (0)