mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-25 15:40:22 +08:00
fix: server restart
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user