Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e864369

Browse files
committedAug 28, 2023
fixes after bump to goa v3 (needs to be tested)
1 parent 00ba8f2 commit e864369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎v2/http.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Server(home string) http.Handler {
4646
}
4747
indexesEndpoints := indexessvc.NewEndpoints(&indexesSvc)
4848
indexesServer := indexessvr.New(indexesEndpoints, mux, goahttp.RequestDecoder,
49-
goahttp.ResponseEncoder, errorHandler(logger))
49+
goahttp.ResponseEncoder, errorHandler(logger), nil)
5050
indexessvr.Mount(mux, indexesServer)
5151

5252
// Mount tools
@@ -55,7 +55,7 @@ func Server(home string) http.Handler {
5555
Indexes: &indexesSvc,
5656
}
5757
toolsEndpoints := toolssvc.NewEndpoints(&toolsSvc)
58-
toolsServer := toolssvr.New(toolsEndpoints, mux, goahttp.RequestDecoder, goahttp.ResponseEncoder, errorHandler(logger))
58+
toolsServer := toolssvr.New(toolsEndpoints, mux, goahttp.RequestDecoder, goahttp.ResponseEncoder, errorHandler(logger), nil)
5959
toolssvr.Mount(mux, toolsServer)
6060

6161
// Mount middlewares
@@ -70,7 +70,7 @@ func Server(home string) http.Handler {
7070
// to correlate.
7171
func errorHandler(logger *logrus.Logger) func(context.Context, http.ResponseWriter, error) {
7272
return func(ctx context.Context, w http.ResponseWriter, err error) {
73-
id := ctx.Value(middleware.RequestIDKey).(string)
73+
id := ctx.Value(middleware.RequestID).(string)
7474
w.Write([]byte("[" + id + "] encoding: " + err.Error()))
7575
logger.Printf("[%s] ERROR: %s", id, err.Error())
7676
}

0 commit comments

Comments
 (0)
Please sign in to comment.