mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Add Patch For Libp2p (#12507)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
6896b41963
commit
0f228896b0
2
deps.bzl
2
deps.bzl
@ -2458,6 +2458,8 @@ def prysm_deps():
|
||||
],
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/libp2p/go-libp2p",
|
||||
patch_args = ["-p1"],
|
||||
patches = ["//third_party:com_github_libp2p_go_libp2p.patch"],
|
||||
sum = "h1:KwA7pXKXpz8hG6Cr1fMA7UkgleogcwQj0sxl5qquWRg=",
|
||||
version = "v0.27.5",
|
||||
)
|
||||
|
11
third_party/com_github_libp2p_go_libp2p.patch
vendored
Normal file
11
third_party/com_github_libp2p_go_libp2p.patch
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
diff --git a/p2p/net/swarm/swarm_conn.go b/p2p/net/swarm/swarm_conn.go
|
||||
index 0e79da1b..e770381a 100644
|
||||
--- a/p2p/net/swarm/swarm_conn.go
|
||||
+++ b/p2p/net/swarm/swarm_conn.go
|
||||
@@ -130,6 +130,7 @@ func (c *Conn) start() {
|
||||
|
||||
// We only get an error here when the swarm is closed or closing.
|
||||
if err != nil {
|
||||
+ scope.Done()
|
||||
return
|
||||
}
|
Loading…
Reference in New Issue
Block a user