(operation, format string, recovered any)
| 406 | } |
| 407 | |
| 408 | func sharedStateCodecPanicError(operation, format string, recovered any) error { |
| 409 | if err, ok := recovered.(error); ok { |
| 410 | return fmt.Errorf("fiber: failed to %s shared state %s value: %w", operation, format, err) |
| 411 | } |
| 412 | |
| 413 | return fmt.Errorf("fiber: failed to %s shared state %s value: %v", operation, format, recovered) |
| 414 | } |
| 415 | |
| 416 | func (s *SharedState) storageKey(key string) (string, bool) { |
| 417 | if key == "" { |
no test coverage detected