prysm-pulse/container/leaky-bucket/BUILD.bazel
Nishant Das 661cbc45ae
Vendor Leaky Bucket Implementation (#11560)
* add changes

* fix tests

* change to minute

* remove dep

* remove

* fix tests

* add test for period

* improve

* linter

* build files

* ci

* make it stricter

* fix tests

* fix

* Update beacon-chain/sync/rate_limiter.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>

Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-10-20 16:40:13 -05:00

23 lines
497 B
Python

load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"collector.go",
"heap.go",
"leakybucket.go",
],
importpath = "github.com/prysmaticlabs/prysm/v3/container/leaky-bucket",
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = [
"collector_test.go",
"heap_test.go",
"leakybucket_test.go",
],
embed = [":go_default_library"],
)