resolveContext returns the session's stored fiber context if available, otherwise returns context.Background(). fiber.Ctx implements context.Context directly, so no allocation is needed. This is used as the default context for non-WithContext method variants.
()
| 672 | // fiber.Ctx implements context.Context directly, so no allocation is needed. |
| 673 | // This is used as the default context for non-WithContext method variants. |
| 674 | func (s *Session) resolveContext() context.Context { |
| 675 | if s.ctx != nil { |
| 676 | return s.ctx |
| 677 | } |
| 678 | return context.Background() |
| 679 | } |
no outgoing calls