Skip to content

Commit 2b8311d

Browse files
gzliudanJukLee0ira
authored andcommitted
metrics: add go:build lines (ethereum#23468)
1 parent 7bb3781 commit 2b8311d

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

metrics/cpu_disabled.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build ios || js
1718
// +build ios js
1819

1920
package metrics

metrics/cputime_nop.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build windows || js
1718
// +build windows js
1819

1920
package metrics

metrics/runtime_cgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build cgo && !appengine && !js
12
// +build cgo,!appengine,!js
23

34
package metrics

metrics/runtime_gccpufraction.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.5
12
// +build go1.5
23

34
package metrics

metrics/runtime_no_cgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !cgo || appengine || js
12
// +build !cgo appengine js
23

34
package metrics

metrics/runtime_no_gccpufraction.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !go1.5
12
// +build !go1.5
23

34
package metrics

metrics/syslog.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !windows
12
// +build !windows
23

34
package metrics

0 commit comments

Comments
 (0)