From 0fe8514bf0f49d3e1d5bc3f308e7fd84644e4ff5 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 14 Mar 2024 12:55:01 +0100 Subject: [PATCH] Updated dependencies --- web/akyoto_test.go | 6 +++--- web/go.mod | 2 +- web/go.sum | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/akyoto_test.go b/web/akyoto_test.go index 0b7cf06..2c73461 100644 --- a/web/akyoto_test.go +++ b/web/akyoto_test.go @@ -9,11 +9,11 @@ import ( func BenchmarkAkyoto(b *testing.B) { bench( b, - func() *server.Server { + func() server.Server { return server.New() }, - func(s *server.Server, method string, path string) { - s.Router.Add(method, path, func(ctx server.Context) error { + func(s server.Server, method string, path string) { + s.Router().Add(method, path, func(ctx server.Context) error { return ctx.Bytes(payload) }) }, diff --git a/web/go.mod b/web/go.mod index 7a14a68..6471667 100644 --- a/web/go.mod +++ b/web/go.mod @@ -4,7 +4,7 @@ go 1.22.1 require ( git.akyoto.dev/go/router v0.1.3 - git.akyoto.dev/go/server v0.0.0-20240313191801-c13dbc55d263 + git.akyoto.dev/go/server v0.0.0-20240313230620-594cad69db74 github.com/aerogo/aero v1.3.59 github.com/beego/beego/v2 v2.1.6 github.com/bmizerany/pat v0.0.0-20210406213842-e4b6760bdd6f diff --git a/web/go.sum b/web/go.sum index d39b312..42e433d 100644 --- a/web/go.sum +++ b/web/go.sum @@ -2,8 +2,8 @@ git.akyoto.dev/go/assert v0.1.3 h1:QwCUbmG4aZYsNk/OuRBz1zWVKmGlDUHhOnnDBfn8Qw8= git.akyoto.dev/go/assert v0.1.3/go.mod h1:0GzMaM0eURuDwtGkJJkCsI7r2aUKr+5GmWNTFPgDocM= git.akyoto.dev/go/router v0.1.3 h1:H4wJCYdDD3/i9miYSK/e5sCoGiXe9OX7KmgH4/Toa60= git.akyoto.dev/go/router v0.1.3/go.mod h1:VfSsK/Z6fUhT3pWaAAnuAcj++bWRZD+bzNaqJoTAunU= -git.akyoto.dev/go/server v0.0.0-20240313191801-c13dbc55d263 h1:t5DctyOnTUPUMQsyHNZefIKYO4TjKq4wXt+2+e37PwY= -git.akyoto.dev/go/server v0.0.0-20240313191801-c13dbc55d263/go.mod h1:VVr9rDl+CPnQyXphXpOcpSovrjzPGsSk00PjUBHkx1c= +git.akyoto.dev/go/server v0.0.0-20240313230620-594cad69db74 h1:maCXHWOVHEC9A3FGZ6DSlWC5klNWaPA8GZqBAG1xKBk= +git.akyoto.dev/go/server v0.0.0-20240313230620-594cad69db74/go.mod h1:VVr9rDl+CPnQyXphXpOcpSovrjzPGsSk00PjUBHkx1c= github.com/aerogo/aero v1.3.59 h1:5yu+kk/uIXAXADKSLCFKhxAzThCehvpbF6gst+G32Fw= github.com/aerogo/aero v1.3.59/go.mod h1:ehwj+mb117xQRTvp11jlnrRNPgbcYL6s6aBk9wbIZ0o= github.com/aerogo/csp v0.1.10 h1:2PJf9gkdRvCFYOA0baTUyp34vwPp5ZJJX8GZRCYc/nM=