From 91b80e073c6818cd4229ca5230e6d240161b771a Mon Sep 17 00:00:00 2001 From: mrh997 Date: Thu, 16 Jan 2025 18:41:59 +0800 Subject: [PATCH] feat(devops): adjust debug comment (#6) --- devops/debug/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devops/debug/main.go b/devops/debug/main.go index 7ece75a..8b32bbf 100644 --- a/devops/debug/main.go +++ b/devops/debug/main.go @@ -32,7 +32,7 @@ import ( func main() { ctx := context.Background() - // init eino devops server + // Init eino devops server err := devops.Init(ctx) if err != nil { logs.Errorf("[eino dev] init failed, err=%v", err) @@ -44,11 +44,11 @@ func main() { graph.RegisterSimpleGraph(ctx) graph.RegisterSimpleStateGraph(ctx) - // This part has nothing to do with eino devops debugging, just wanting the demo service exits only when the user actively closes the process. + // Blocking process exits sigs := make(chan os.Signal, 1) signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM) <-sigs - // exit + // Exit logs.Infof("[eino dev] shutting down\n") }