From 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 15:59:29 -0700 Subject: pull request, response, handlers out of the gemini package --- contrib/log/log.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/log/log.go') diff --git a/contrib/log/log.go b/contrib/log/log.go index 2ccd3bc..0060f4e 100644 --- a/contrib/log/log.go +++ b/contrib/log/log.go @@ -7,16 +7,16 @@ import ( kitlog "github.com/go-kit/log" - "tildegit.org/tjp/gus/gemini" + "tildegit.org/tjp/gus" ) -func Requests(out io.Writer, logger kitlog.Logger) gemini.Middleware { +func Requests(out io.Writer, logger kitlog.Logger) gus.Middleware { if logger == nil { logger = kitlog.NewLogfmtLogger(kitlog.NewSyncWriter(out)) } - return func(next gemini.Handler) gemini.Handler { - return func(ctx context.Context, r *gemini.Request) (resp *gemini.Response) { + return func(next gus.Handler) gus.Handler { + return func(ctx context.Context, r *gus.Request) (resp *gus.Response) { start := time.Now() defer func() { end := time.Now() -- cgit v1.2.3