diff --git a/p2p/transport/tcp/metrics.go b/p2p/transport/tcp/metrics.go index fc2add49bd..8e7308f3ad 100644 --- a/p2p/transport/tcp/metrics.go +++ b/p2p/transport/tcp/metrics.go @@ -1,4 +1,4 @@ -//go:build !windows +//go:build !windows && !riscv64 package tcp diff --git a/p2p/transport/tcp/metrics_general.go b/p2p/transport/tcp/metrics_general.go index 6b67283448..e9868609f3 100644 --- a/p2p/transport/tcp/metrics_general.go +++ b/p2p/transport/tcp/metrics_general.go @@ -1,4 +1,4 @@ -//go:build !linux && !darwin && !windows +//go:build !linux && !darwin && !windows && !riscv64 package tcp diff --git a/p2p/transport/tcp/metrics_windows.go b/p2p/transport/tcp/metrics_none.go similarity index 71% rename from p2p/transport/tcp/metrics_windows.go rename to p2p/transport/tcp/metrics_none.go index 7142e7dbe3..01cf3e9c5c 100644 --- a/p2p/transport/tcp/metrics_windows.go +++ b/p2p/transport/tcp/metrics_none.go @@ -1,4 +1,6 @@ -//go:build windows +// riscv64 see: https://github.com/marten-seemann/tcp/pull/1 + +//go:build windows || riscv64 package tcp