删除 触发提示
This commit is contained in:
parent
e1162c6a47
commit
787815b64e
14
main.go
14
main.go
|
@ -138,13 +138,13 @@ func StartNode(cfg *ConfigServer) {
|
||||||
// 设置共享的参数
|
// 设置共享的参数
|
||||||
DequeueHandler.WithShared(nh)
|
DequeueHandler.WithShared(nh)
|
||||||
|
|
||||||
go func() {
|
// go func() {
|
||||||
for DequeueHandler != nil {
|
// for DequeueHandler != nil {
|
||||||
DequeueHandler.Notify(DequeueHandler.NULL)
|
// DequeueHandler.Notify(DequeueHandler.NULL)
|
||||||
log.Println("DequeueHandler 触发")
|
// log.Println("DequeueHandler 触发")
|
||||||
time.Sleep(time.Second * 5)
|
// time.Sleep(time.Second * 5)
|
||||||
}
|
// }
|
||||||
}()
|
// }()
|
||||||
|
|
||||||
if err := nh.StartReplica(initialMembers, false, NewSMQueue, rc); err != nil {
|
if err := nh.StartReplica(initialMembers, false, NewSMQueue, rc); err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "failed to add cluster, %v\n", err)
|
fmt.Fprintf(os.Stderr, "failed to add cluster, %v\n", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user