更新 cmd/${REPO_NAME}.go
Some checks failed
Build image / build (push) Failing after 9s

This commit is contained in:
timerzz 2024-09-04 17:24:19 +08:00
parent 2351189782
commit f9e1a1d75c

View File

@ -2,6 +2,7 @@ package main
import (
"context"
"flag"
"os"
"os/signal"
@ -16,6 +17,7 @@ import (
)
func main() {
flag.Parse()
glog.Info(">>> BEGIN INIT<<<")
ctx, cancel := signal.NotifyContext(context.Background(), os.Kill, os.Interrupt)
defer cancel()