mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
4d7797827e
* concurrent conn with mutex * add buffer size * only localhost * clarify caller needs to hold lock * Update shared/logutil/stream.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update shared/logutil/stream.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * fix up tests Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
31 lines
914 B
Python
31 lines
914 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"logutil.go",
|
|
"stream.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/logutil",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//shared/event:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//shared/rand:go_default_library",
|
|
"@com_github_gorilla_websocket//:go_default_library",
|
|
"@com_github_hashicorp_golang_lru//:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["stream_test.go"],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//shared/testutil/require:go_default_library",
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
|
],
|
|
)
|