From 15f1cdb2c358d1c120b5ab4bc28ef596e3d93b80 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 21 十月 2023 14:22:58 +0800 Subject: [PATCH] 关闭nsq时也关闭生产者 --- conf/config.go | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/conf/config.go b/conf/config.go index d18e32e..53f53ea 100644 --- a/conf/config.go +++ b/conf/config.go @@ -73,7 +73,12 @@ ModbusIntType string SlaveId int Package string - KeepAlive bool + StandbyTime int64 + } + + Prompt struct { + SafeProduce string `json:"safeProduce,omitempty"` + PlcNotConnected string `json:"plcNotConnected,omitempty"` } config struct { @@ -94,6 +99,8 @@ //PLC PLC plc + + Prompt Prompt } ) -- Gitblit v1.8.0