(server *http.Server, addr string, reason string)
| 125 | } |
| 126 | |
| 127 | func (p *pprofServer) stopServer(server *http.Server, addr string, reason string) { |
| 128 | _ = p.stopServerWithContext(context.Background(), server, addr, reason) |
| 129 | } |
| 130 | |
| 131 | func (p *pprofServer) stopServerWithContext(ctx context.Context, server *http.Server, addr string, reason string) error { |
| 132 | if server == nil { |
no test coverage detected