From 369026325416d187b7b0a0fbe8b5fd1895515bbb Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 22 八月 2023 18:18:15 +0800 Subject: [PATCH] 获取工艺参数用nsq方式获取 --- nsq/consumer.go | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/nsq/consumer.go b/nsq/consumer.go index feb2814..d7b55e3 100644 --- a/nsq/consumer.go +++ b/nsq/consumer.go @@ -22,6 +22,8 @@ handler = new(ScheduleTask) case fmt.Sprintf(constvar.NsqTopicSendPlcAddress, conf.Conf.NsqConf.NodeId): handler = &PlcAddress{Topic: topic} + case fmt.Sprintf(constvar.NsqTopicProcessParamsResponse, conf.Conf.NsqConf.NodeId): + handler = &ProcessParams{Topic: topic} } c.AddHandler(handler.HandleMessage) -- Gitblit v1.8.0