Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gao12312 committed Nov 28, 2024
1 parent 087b53c commit 8610dc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/kubenest/node-agent/app/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ func Start(ctx context.Context, addr, certFile, keyFile, user, password string)
ReadHeaderTimeout: 10 * time.Second,
}

go func() {
time.Sleep(30 * time.Second)
_ = server.Close()
}()
// go func() {
// time.Sleep(30 * time.Second)
// _ = server.Close()
// }()

err := server.ListenAndServeTLS("", "")
if err != nil {
Expand Down

0 comments on commit 8610dc2

Please sign in to comment.