Skip to content

Commit 93d9b3b

Browse files
committed
chore(deps): Bumping httputils and reducing number of goroutine
Signed-off-by: Vincent Boutour <[email protected]>
1 parent fbba4df commit 93d9b3b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/goweb/api.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ func main() {
3939
appServer := server.New(config.appServer)
4040
promServer := server.New(config.promServer)
4141

42-
go promServer.Start(client.health.ContextEnd(), "prometheus", client.prometheus.Handler())
43-
go appServer.Start(client.health.ContextEnd(), "http", httputils.Handler(newPort(config), client.health, recoverer.Middleware, client.prometheus.Middleware, client.tracer.Middleware, owasp.New(config.owasp).Middleware, cors.New(config.cors).Middleware))
42+
go promServer.Start(client.health.End(ctx), "prometheus", client.prometheus.Handler())
43+
go appServer.Start(client.health.End(ctx), "http", httputils.Handler(newPort(config), client.health, recoverer.Middleware, client.prometheus.Middleware, client.tracer.Middleware, owasp.New(config.owasp).Middleware, cors.New(config.cors).Middleware))
4444

4545
client.health.WaitForTermination(appServer.Done())
4646
server.GracefulWait(appServer.Done(), promServer.Done())

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
github.com/ViBiOh/flags v1.2.0
7-
github.com/ViBiOh/httputils/v4 v4.52.0
7+
github.com/ViBiOh/httputils/v4 v4.52.1
88
)
99

1010
require (

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/ViBiOh/flags v1.2.0 h1:DaujjNXzD29KxKyp4eZdn7c9+uBN5DokWgDAe7DcUmc=
22
github.com/ViBiOh/flags v1.2.0/go.mod h1:UyMB5zeD/aId7Xw3x7577ZNU298JmukzOcV8p/H2W1s=
3-
github.com/ViBiOh/httputils/v4 v4.52.0 h1:e6LQNhjp8e3gsqTqPruux6UiZDI3Wej/hyWc0IVq9nQ=
4-
github.com/ViBiOh/httputils/v4 v4.52.0/go.mod h1:YA+JJC5yrILqjk+OI9L0emleE2rXD3Q/z6gcS22IZlE=
3+
github.com/ViBiOh/httputils/v4 v4.52.1 h1:0hfZXlwLhTDPRFvcryvrNe6ZUaYnQfrFdB0tnrrf1Vg=
4+
github.com/ViBiOh/httputils/v4 v4.52.1/go.mod h1:YA+JJC5yrILqjk+OI9L0emleE2rXD3Q/z6gcS22IZlE=
55
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
66
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
77
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=

0 commit comments

Comments
 (0)