summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-11-25 16:57:52 +0100
committerValery Piashchynski <[email protected]>2022-11-25 16:57:52 +0100
commitbb97ae875c0ce69fa2f2fc502d5ee0805fed1f3e (patch)
treefcc813557307905867b585b408d203cdd862a162
parent823078cfc024c004497f74950507c20ba36ce4aa (diff)
mod: update deps
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--cmd/rr/main.go8
-rw-r--r--go.mod2
-rw-r--r--go.sum4
3 files changed, 10 insertions, 4 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 863947cd..023e6ccb 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -6,7 +6,7 @@ import (
"github.com/fatih/color"
"github.com/roadrunner-server/roadrunner/v2/internal/cli"
- _ "go.uber.org/automaxprocs"
+ "go.uber.org/automaxprocs/maxprocs"
)
// exitFn is a function for application exiting.
@@ -15,6 +15,12 @@ var exitFn = os.Exit //nolint:gochecknoglobals
// main CLI application entrypoint.
func main() { exitFn(run()) }
+func init() {
+ _, _ = maxprocs.Set(maxprocs.Min(1), maxprocs.Logger(func(_ string, _ ...interface{}) {
+ return
+ }))
+}
+
// run this CLI application.
func run() int {
cmd := cli.NewCommand(filepath.Base(os.Args[0]))
diff --git a/go.mod b/go.mod
index a816f512..d8a11d29 100644
--- a/go.mod
+++ b/go.mod
@@ -192,7 +192,7 @@ require (
github.com/twmb/murmur3 v1.1.6 // indirect
github.com/uber-go/tally/v4 v4.1.3 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
- github.com/valyala/fasthttp v1.41.0 // indirect
+ github.com/valyala/fasthttp v1.42.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
diff --git a/go.sum b/go.sum
index b79caadc..bf6cc165 100644
--- a/go.sum
+++ b/go.sum
@@ -965,8 +965,8 @@ github.com/uber-go/tally/v4 v4.1.3/go.mod h1:aXeSTDMl4tNosyf6rdU8jlgScHyjEGGtfJ/
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
-github.com/valyala/fasthttp v1.41.0 h1:zeR0Z1my1wDHTRiamBCXVglQdbUwgb9uWG3k1HQz6jY=
-github.com/valyala/fasthttp v1.41.0/go.mod h1:f6VbjjoI3z1NDOZOv17o6RvtRSWxC77seBFc2uWtgiY=
+github.com/valyala/fasthttp v1.42.0 h1:LBMyqvJR8DEBgN79oI8dGbkuj5Lm9jbHESxH131TTN8=
+github.com/valyala/fasthttp v1.42.0/go.mod h1:f6VbjjoI3z1NDOZOv17o6RvtRSWxC77seBFc2uWtgiY=
github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8=
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI=