runtime: removed trap goroutine and let the context cancelation do the thing

This commit is contained in:
A.Unger
2021-12-06 12:11:48 +01:00
parent 771b870753
commit e3e3d1ee57
15 changed files with 4 additions and 75 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ func Run(cfg *config.Config) *cobra.Command {
log.Fatal("dialing:", err)
}
var res int
if err := client.Call("Service.Start", &args[0], &res); err != nil {
if err = client.Call("Service.Start", &args[0], &res); err != nil {
log.Fatal(err)
}