mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05: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:
2
deps.bzl
2
deps.bzl
@@ -2458,6 +2458,8 @@ def prysm_deps():
|
|||||||
],
|
],
|
||||||
build_file_proto_mode = "disable_global",
|
build_file_proto_mode = "disable_global",
|
||||||
importpath = "github.com/libp2p/go-libp2p",
|
importpath = "github.com/libp2p/go-libp2p",
|
||||||
|
patch_args = ["-p1"],
|
||||||
|
patches = ["//third_party:com_github_libp2p_go_libp2p.patch"],
|
||||||
sum = "h1:KwA7pXKXpz8hG6Cr1fMA7UkgleogcwQj0sxl5qquWRg=",
|
sum = "h1:KwA7pXKXpz8hG6Cr1fMA7UkgleogcwQj0sxl5qquWRg=",
|
||||||
version = "v0.27.5",
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user