feat: add changes from server modular to main (#20583)

This commit is contained in:
Marko
2024-06-06 13:00:01 +00:00
committed by GitHub
parent 031b0c94ed
commit 514830e56a
11 changed files with 60 additions and 29 deletions
+4 -1
View File
@@ -13,6 +13,9 @@ type ContextAwareCometInfoService struct{}
// CometInfo implements comet.Service.
func (c *ContextAwareCometInfoService) CometInfo(ctx context.Context) comet.Info {
ci := ctx.Value(corecontext.CometInfoKey).(comet.Info)
ci, ok := ctx.Value(corecontext.CometInfoKey).(comet.Info)
if !ok {
panic("comet.Info not found in context")
}
return ci
}