mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
* sse implementation that sheds stuck clients * Radek and James feedback * Refactor event streamer code for readability * less-flaky test signaling * test case where queue fills; fixes * add changelog entry * james and preston feedback * swap our Subscription interface with an alias * event.Data can be nil for the payload attr event * deepsource --------- Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
29 lines
715 B
Python
29 lines
715 B
Python
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"feed.go",
|
|
"interface.go",
|
|
"subscription.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/async/event",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//time/mclock:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//event:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
size = "small",
|
|
srcs = [
|
|
"example_scope_test.go",
|
|
"example_subscription_test.go",
|
|
"subscription_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = ["//testing/require:go_default_library"],
|
|
)
|