Code cleanup and formatting
This commit is contained in:
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/kjannette/go_http_server/cmd/app/handler/httpjson"
|
||||
"github.com/kjannette/go_http_server/cmd/app/handler"
|
||||
"github.com/kjannette/go_http_server/internal/config"
|
||||
|
||||
"go.uber.org/zap"
|
||||
@@ -14,7 +14,7 @@ func run(ctx context.Context, cfg *config.Config) error {
|
||||
lg := zap.L().With(zap.String("app_name", appName), zap.String("app_version", appVersion))
|
||||
|
||||
eg, ctx := errgroup.WithContext(ctx)
|
||||
app, h := httpjson.New(lg)
|
||||
app, h := handler.New(lg)
|
||||
serverLog := lg.Named("run_server")
|
||||
|
||||
eg.Go(func() error {
|
||||
|
||||
Reference in New Issue
Block a user