From 19ffd56058e5f7ec4469670e39df4e2d89c589e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Fri, 1 Dec 2023 12:08:59 +0800 Subject: [PATCH] tcp: fix build on loong64 (#2655) --- p2p/transport/tcp/metrics.go | 2 +- p2p/transport/tcp/metrics_general.go | 2 +- p2p/transport/tcp/metrics_none.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/transport/tcp/metrics.go b/p2p/transport/tcp/metrics.go index 8e7308f3ad..4434b037bf 100644 --- a/p2p/transport/tcp/metrics.go +++ b/p2p/transport/tcp/metrics.go @@ -1,4 +1,4 @@ -//go:build !windows && !riscv64 +//go:build !windows && !riscv64 && !loong64 package tcp diff --git a/p2p/transport/tcp/metrics_general.go b/p2p/transport/tcp/metrics_general.go index e9868609f3..419fff360e 100644 --- a/p2p/transport/tcp/metrics_general.go +++ b/p2p/transport/tcp/metrics_general.go @@ -1,4 +1,4 @@ -//go:build !linux && !darwin && !windows && !riscv64 +//go:build !linux && !darwin && !windows && !riscv64 && !loong64 package tcp diff --git a/p2p/transport/tcp/metrics_none.go b/p2p/transport/tcp/metrics_none.go index 01cf3e9c5c..8538b30c89 100644 --- a/p2p/transport/tcp/metrics_none.go +++ b/p2p/transport/tcp/metrics_none.go @@ -1,6 +1,6 @@ // riscv64 see: https://github.com/marten-seemann/tcp/pull/1 -//go:build windows || riscv64 +//go:build windows || riscv64 || loong64 package tcp