metrics: fix compilation for GOOS=js (#23449)

pull/23461/head
Felix Lange 3 years ago committed by GitHub
parent b69f5ca7d4
commit a789dcc978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      metrics/cpu_disabled.go
  2. 2
      metrics/cpu_enabled.go
  3. 2
      metrics/cputime_nop.go
  4. 2
      metrics/cputime_unix.go
  5. 3
      metrics/runtime_cgo.go
  6. 2
      metrics/runtime_no_cgo.go

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build ios
// +build ios js
package metrics

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !ios
// +build !ios,!js
package metrics

@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build windows js
package metrics
// getProcessCPUTime returns 0 on Windows as there is no system call to resolve

@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// +build !windows
// +build !windows,!js
package metrics

@ -1,5 +1,4 @@
// +build cgo
// +build !appengine
// +build cgo,!appengine,!js
package metrics

@ -1,4 +1,4 @@
// +build !cgo appengine
// +build !cgo appengine js
package metrics

Loading…
Cancel
Save