add run many core at the same time

This commit is contained in:
Yuzuki616
2023-06-09 21:20:41 +08:00
parent 9827d442d5
commit f07629d438
9 changed files with 142 additions and 9 deletions

View File

@@ -7,13 +7,13 @@ import (
func TestConf_LoadFromPath(t *testing.T) {
c := New()
t.Log(c.LoadFromPath("../example/config.yml.example"), c.NodesConfig[0].ControllerConfig.EnableXtls)
t.Log(c.LoadFromPath("../example/config.yml.example"))
}
func TestConf_Watch(t *testing.T) {
c := New()
c.Watch("../example/config.yml.example", func() {
log.Println(c.Watch("../example/config.yml.example", func() {
log.Println(1)
})
}))
select {}
}