summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs_test.go
diff options
context:
space:
mode:
authorJames Tucker <james@tailscale.com>2024-01-24 14:26:55 -0800
committerJames Tucker <jftucker@gmail.com>2024-01-24 17:47:16 -0800
commit0f3b2e7b86c507ade1d514d09d350910752add98 (patch)
treef4b3779c54259636cc9814e70f77be6da33cfe01 /control/controlknobs/controlknobs_test.go
parentfd94d96e2bb149cbd5b09e719d0412dfd9386e28 (diff)
downloadtailscale-0f3b2e7b86c507ade1d514d09d350910752add98.tar.xz
tailscale-0f3b2e7b86c507ade1d514d09d350910752add98.zip
util/expvarx: add a time and concurrency limiting expvar.Func wrapper
expvarx.SafeFunc wraps an expvar.Func with a time limit. On reaching the time limit, calls to Value return nil, and no new concurrent calls to the underlying expvar.Func will be started until the call completes. Updates tailscale/corp#16999 Signed-off-by: James Tucker <james@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs_test.go')
0 files changed, 0 insertions, 0 deletions