跑一晚测试

This commit is contained in:
eson 2023-11-13 23:15:41 +08:00
parent 1713387f6d
commit 68787ed426

13
main.go
View File

@ -138,13 +138,12 @@ func StartNode(cfg *ConfigServer) {
// 设置共享的参数
DequeueHandler.WithShared(nh)
// go func() {
// for DequeueHandler != nil {
// DequeueHandler.Notify(DequeueHandler.NULL)
// log.Println("DequeueHandler 触发")
// time.Sleep(time.Second * 5)
// }
// }()
go func() {
for DequeueHandler != nil {
DequeueHandler.Notify(DequeueHandler.NULL)
time.Sleep(time.Second * 5)
}
}()
if err := nh.StartReplica(initialMembers, false, NewSMQueue, rc); err != nil {
fmt.Fprintf(os.Stderr, "failed to add cluster, %v\n", err)