From 83a776a190f07d20000382fea4b0a1fcee96084c Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sun, 17 Dec 2023 12:26:48 +0800 Subject: [PATCH] chore: upgrade otel, removed ut temporarily because of otel API changes (#3795) --- core/proc/signals.go | 5 +---- core/service/servicegroup.go | 2 +- tools/goctl/internal/version/version.go | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/core/proc/signals.go b/core/proc/signals.go index bbc41ce5..b8996cba 100644 --- a/core/proc/signals.go +++ b/core/proc/signals.go @@ -31,10 +31,7 @@ func init() { dumpGoroutines(fileCreator{}) case syscall.SIGUSR2: profiler := StartProfile() - go func() { - <-time.After(profileDuration) - profiler.Stop() - }() + time.AfterFunc(profileDuration, profiler.Stop) case syscall.SIGTERM: stopOnSignal() gracefulStop(signals, syscall.SIGTERM) diff --git a/core/service/servicegroup.go b/core/service/servicegroup.go index c8b0715a..031abb5d 100644 --- a/core/service/servicegroup.go +++ b/core/service/servicegroup.go @@ -50,7 +50,7 @@ func (sg *ServiceGroup) Add(service Service) { // Also, quitting this method will close the logx output. func (sg *ServiceGroup) Start() { proc.AddShutdownListener(func() { - logx.Info("Shutting down service in group") + logx.Info("Shutting down services in group") sg.stopOnce() }) diff --git a/tools/goctl/internal/version/version.go b/tools/goctl/internal/version/version.go index c1f3947c..6ec409b0 100644 --- a/tools/goctl/internal/version/version.go +++ b/tools/goctl/internal/version/version.go @@ -6,7 +6,7 @@ import ( ) // BuildVersion is the version of goctl. -const BuildVersion = "1.6.0" +const BuildVersion = "1.6.1" var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}