diff --git a/p2p/transport/tcp/metrics.go b/p2p/transport/tcp/metrics.go index fc2add49b..8e7308f3a 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 6b6728344..e9868609f 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 7142e7dbe..01cf3e9c5 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