()
| 120 | } |
| 121 | |
| 122 | func (mod *HttpServer) Stop() error { |
| 123 | return mod.SetRunning(false, func() { |
| 124 | ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) |
| 125 | defer cancel() |
| 126 | mod.server.Shutdown(ctx) |
| 127 | }) |
| 128 | } |
no test coverage detected