fix: server restart

This commit is contained in:
langhuihui
2024-08-15 14:19:37 +08:00
parent 978f3061e3
commit 590d6a973b
15 changed files with 530 additions and 41 deletions

View File

@@ -16,6 +16,6 @@ import (
func main() {
ctx := context.Background()
// ctx, _ := context.WithDeadline(context.Background(), time.Now().Add(time.Second*100))
go m7s.Run(ctx, "config1.yaml")
m7s.NewServer().Run(ctx, "config2.yaml")
m7s.AddRootTaskWithContext(ctx, m7s.NewServer("config2.yaml"))
m7s.Run(ctx, "config1.yaml")
}