Skip to content

Commit

Permalink
Merge pull request #27 from softonic/feat/add-support-gomaxprocs
Browse files Browse the repository at this point in the history
Configure gomaxprocs. Let the processor used by the limit you have in your docker/k8s
  • Loading branch information
santinoncs authored Dec 19, 2024
2 parents c411a38 + cefad33 commit 646dbc5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
17 changes: 9 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ require (
github.com/rakyll/gotest v0.0.6 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/vektra/mockery v1.1.2 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.32.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/tools v0.28.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241206012308-a4fef0638583 // indirect
go.uber.org/automaxprocs v1.6.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/tools v0.25.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.23
go 1.23.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf
github.com/vektra/mockery v1.1.2 h1:uc0Yn67rJpjt8U/mAZimdCKn9AeA97BOkjpmtBSlfP4=
github.com/vektra/mockery v1.1.2/go.mod h1:VcfZjKaFOPO+MpN4ZvwPjs4c48lkq1o3Ym8yHZJu0jU=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=
go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
Expand Down
6 changes: 5 additions & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import (
"os"
"strconv"

// Third-party packages, with a blank line separator
"k8s.io/klog"
_ "go.uber.org/automaxprocs"

"github.com/softonic/homing-pigeon/pkg/helpers"
"github.com/softonic/homing-pigeon/pkg/messages"
"github.com/softonic/homing-pigeon/pkg/middleware"
"github.com/softonic/homing-pigeon/pkg/readers"
"github.com/softonic/homing-pigeon/pkg/writers"
"k8s.io/klog"

)

func main() {
Expand Down

0 comments on commit 646dbc5

Please sign in to comment.