Skip to content

Commit 2642445

Browse files
committed
feat(grpcs): add context middleware to http server
1 parent db606e0 commit 2642445

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

servers/grpcs/server.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ func (s *serviceImpl) DixInject(
166166
}))
167167
}
168168

169+
httpServer.Use(func(ctx *fiber.Ctx) error {
170+
ctx.SetUserContext(ctx.Context())
171+
return ctx.Next()
172+
})
173+
169174
app := fiber.New()
170175
app.Group("/debug", httputil.StripPrefix(filepath.Join(conf.BaseUrl, "/debug"), debug.Handler))
171176

0 commit comments

Comments
 (0)