From b2d4e450437fff64615e8135c12c1bc596219502 Mon Sep 17 00:00:00 2001 From: Irzhy Ranaivoarivony Date: Sat, 28 Oct 2023 02:03:00 +0300 Subject: [PATCH] wasip1 support on cpu, cputime --- metrics/cpu_disabled.go | 4 ++-- metrics/cputime_unix.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metrics/cpu_disabled.go b/metrics/cpu_disabled.go index 025d97aeb3..8404b0edd4 100644 --- a/metrics/cpu_disabled.go +++ b/metrics/cpu_disabled.go @@ -14,8 +14,8 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -//go:build ios || js -// +build ios js +//go:build ios || js || wasip1 +// +build ios js wasip1 package metrics diff --git a/metrics/cputime_unix.go b/metrics/cputime_unix.go index ad4f812fd2..a44bf80876 100644 --- a/metrics/cputime_unix.go +++ b/metrics/cputime_unix.go @@ -14,8 +14,8 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -//go:build !windows && !js -// +build !windows,!js +//go:build !windows && !js && !wasip1 +// +build !windows,!js,!wasip1 package metrics