Commit 71074e80 authored by Tien Nguyen's avatar Tien Nguyen Committed by GitHub

op-service: fix missing stop ticker (#9413)

parent 79effc52
...@@ -204,6 +204,8 @@ func (b *Server) Start() error { ...@@ -204,6 +204,8 @@ func (b *Server) Start() error {
// verify that the server comes up // verify that the server comes up
tick := time.NewTimer(10 * time.Millisecond) tick := time.NewTimer(10 * time.Millisecond)
defer tick.Stop()
select { select {
case err := <-errCh: case err := <-errCh:
return fmt.Errorf("http server failed: %w", err) return fmt.Errorf("http server failed: %w", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment