From d27f5c86374edd11c36f6db24e249b8590753fd8 Mon Sep 17 00:00:00 2001 From: sincos Date: Fri, 19 Jul 2024 03:05:42 +0800 Subject: [PATCH] fix: sequencer project subcommand --- cmd/sequencer/commands/project.go | 16 +++++----------- cmd/sequencer/config/default.yml | 4 ++-- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/cmd/sequencer/commands/project.go b/cmd/sequencer/commands/project.go index a123b52..11f1d49 100644 --- a/cmd/sequencer/commands/project.go +++ b/cmd/sequencer/commands/project.go @@ -22,21 +22,15 @@ func NewDefaultSproutConfigGenerator() *SproutConfigGenerator { Network: "mainnet", OutputPath: ".", WasmVersion: "v0.0.1", - - MultiLangHelper: confcmd.NewDefaultMultiLangHelper(), - FlagSet: confcmd.NewFlagSet(), } } type SproutConfigGenerator struct { - Network string ` help.en:"iotx network testnet or mainnet"` - OutputPath string ` help.en:"config file output path"` - WasmVersion string ` help.en:"wasm version"` - WasmPath string `cmd:",r" help.en:"wasm code path"` - DataSource string `cmd:",r" help.en:"project datasource"` - - *confcmd.MultiLangHelper - *confcmd.FlagSet + Network string ` help:"iotx network testnet or mainnet"` + OutputPath string ` help:"config file output path"` + WasmVersion string ` help:"wasm version"` + WasmPath string `cmd:",require" help:"wasm code path"` + DataSource string `cmd:",require" help:"project datasource"` } var _ confcmd.Executor = (*SproutConfigGenerator)(nil) diff --git a/cmd/sequencer/config/default.yml b/cmd/sequencer/config/default.yml index ff0f3c0..6cf4405 100755 --- a/cmd/sequencer/config/default.yml +++ b/cmd/sequencer/config/default.yml @@ -77,12 +77,12 @@ PEBBLE_SEQUENCER__LarkAlert_Env: PROD PEBBLE_SEQUENCER__LarkAlert_Project: pebble-sequencer PEBBLE_SEQUENCER__LarkAlert_Secret: "" PEBBLE_SEQUENCER__LarkAlert_URL: "" -PEBBLE_SEQUENCER__LarkAlert_Version: "" +PEBBLE_SEQUENCER__LarkAlert_Version: v0.2.7-1-g1cbe1ed PEBBLE_SEQUENCER__Logger_Level: DEBUG PEBBLE_SEQUENCER__MqttBroker_Cert_CA: "" PEBBLE_SEQUENCER__MqttBroker_Cert_Crt: "" PEBBLE_SEQUENCER__MqttBroker_Cert_Key: "" -PEBBLE_SEQUENCER__MqttBroker_Keepalive: "10800000000000" +PEBBLE_SEQUENCER__MqttBroker_Keepalive: "3000000000" PEBBLE_SEQUENCER__MqttBroker_QoS: ONCE PEBBLE_SEQUENCER__MqttBroker_RetainPublish: "false" PEBBLE_SEQUENCER__MqttBroker_Retry_Interval: "3000000000"