Skip to content

Commit

Permalink
metrics: add go:build lines (ethereum#23468)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan authored and JukLee0ira committed Dec 16, 2024
1 parent ba0ae65 commit ee9e691
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions metrics/cpu_disabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +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/>.

//go:build ios || js
// +build ios js

package metrics
Expand Down
1 change: 1 addition & 0 deletions metrics/cputime_nop.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +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/>.

//go:build windows || js
// +build windows js

package metrics
Expand Down
1 change: 1 addition & 0 deletions metrics/runtime_cgo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build cgo && !appengine && !js
// +build cgo,!appengine,!js

package metrics
Expand Down
1 change: 1 addition & 0 deletions metrics/runtime_gccpufraction.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.5
// +build go1.5

package metrics
Expand Down
1 change: 1 addition & 0 deletions metrics/runtime_no_cgo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !cgo || appengine || js
// +build !cgo appengine js

package metrics
Expand Down
1 change: 1 addition & 0 deletions metrics/runtime_no_gccpufraction.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !go1.5
// +build !go1.5

package metrics
Expand Down
1 change: 1 addition & 0 deletions metrics/syslog.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package metrics
Expand Down

0 comments on commit ee9e691

Please sign in to comment.