()
| 50 | } |
| 51 | |
| 52 | func (p *Server) existingDebugService() *chatdebug.Service { |
| 53 | if p == nil { |
| 54 | return nil |
| 55 | } |
| 56 | if p.debugSvcFactory == nil { |
| 57 | return p.debugSvc |
| 58 | } |
| 59 | if !p.debugSvcReady.Load() { |
| 60 | return nil |
| 61 | } |
| 62 | return p.debugSvc |
| 63 | } |
| 64 | |
| 65 | func (p *Server) scheduleDebugCleanup( |
| 66 | ctx context.Context, |
no test coverage detected