Skip to content

Commit

Permalink
feat(app): set the server ConnContext hook to inject the underlying n…
Browse files Browse the repository at this point in the history
…et conn int the context for further use
  • Loading branch information
jeamon committed Nov 13, 2023
1 parent 2650112 commit 0fa22a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.core.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ func NewApp(start time.Time) (AppProvider, error) {
Handler: router,
ReadTimeout: config.Server.ReadTimeout,
WriteTimeout: config.Server.WriteTimeout,
MaxHeaderBytes: 1 << 20, // Max headers size : 1MB
MaxHeaderBytes: 1 << 20, // Max headers size : 1MB
ConnContext: SaveConnInContext, // add underlying connection into the request context
}

boltDBConsume := func(ctx context.Context) error {
Expand Down

0 comments on commit 0fa22a6

Please sign in to comment.