From 0f228896b0292ef4ca50f8b05ec253c8865cab47 Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Sun, 11 Jun 2023 09:59:18 +0800 Subject: [PATCH] Add Patch For Libp2p (#12507) Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> --- deps.bzl | 2 ++ third_party/com_github_libp2p_go_libp2p.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 third_party/com_github_libp2p_go_libp2p.patch diff --git a/deps.bzl b/deps.bzl index dd788218b5..b2b48ff99d 100644 --- a/deps.bzl +++ b/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", ) diff --git a/third_party/com_github_libp2p_go_libp2p.patch b/third_party/com_github_libp2p_go_libp2p.patch new file mode 100644 index 0000000000..a0240c1ab9 --- /dev/null +++ b/third_party/com_github_libp2p_go_libp2p.patch @@ -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 + } \ No newline at end of file