Skip to content

Commit 59ea747

Browse files
committed
ci(*): set max cpu to avoid throttling
Signed-off-by: Tony Jin <kavinjsir@gmail.com>
1 parent a1376d3 commit 59ea747

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

cmd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/BurntSushi/toml"
1010
kingpin "github.com/alecthomas/kingpin/v2"
1111
"github.com/rs/zerolog/log"
12+
_ "go.uber.org/automaxprocs"
1213

1314
"github.com/piplabs/story-staking-api/pkg/server"
1415
)

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ require (
146146
go.opentelemetry.io/otel v1.34.0 // indirect
147147
go.opentelemetry.io/otel/metric v1.34.0 // indirect
148148
go.opentelemetry.io/otel/trace v1.34.0 // indirect
149+
go.uber.org/automaxprocs v1.6.0 // indirect
149150
golang.org/x/arch v0.12.0 // indirect
150151
golang.org/x/crypto v0.36.0 // indirect
151152
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce
423423
go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w=
424424
go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k=
425425
go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE=
426+
go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=
427+
go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=
426428
golang.org/x/arch v0.12.0 h1:UsYJhbzPYGsT0HbEdmYcqtCv8UNGvnaL561NnIUvaKg=
427429
golang.org/x/arch v0.12.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
428430
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

0 commit comments

Comments
 (0)