HomeSource World

les: create utilities as common package (#20509)

Description

les: create utilities as common package (#20509)

  • les: move execqueue into utilities package

execqueue is a util for executing queued functions
in a serial order which is used by both les server
and les client. Move it to common package.

  • les: move randselect to utilities package

weighted_random_selector is a helpful tool for randomly select
items maintained in a set but based on the item weight.

It's used anywhere is LES package, mainly by les client but will
be used in les server with very high chance. So move it into a
common package as the second step for les separation.

  • les: rename to utils

Details

Provenance
gary rong <garyrong0905@gmail.com>Authored on Mar 31 2020, 3:17 PM
GitHub <noreply@github.com>Committed on Mar 31 2020, 3:17 PM
Parents
rGETH32d31c31afdd: metrics: improve TestTimerFunc (#20818)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHf78ffc0545f5: les: create utilities as common package (#20509) (authored by gary rong <garyrong0905@gmail.com>).Mar 31 2020, 3:17 PM