We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6ddce commit 2fb1b13Copy full SHA for 2fb1b13
system/dapp/manage/commands/config.go
@@ -50,7 +50,7 @@ func addConfigTxFlags(cmd *cobra.Command) {
50
cmd.Flags().StringP("config_key", "c", "", "config key string")
51
cmd.MarkFlagRequired("config_key")
52
53
- cmd.Flags().StringP("operation", "o", "", "adding or deletion operation")
+ cmd.Flags().StringP("operation", "o", "", "add or delete object")
54
cmd.MarkFlagRequired("operation")
55
56
cmd.Flags().StringP("value", "v", "", "operating object")
@@ -91,7 +91,7 @@ func addConfigApplyFlags(cmd *cobra.Command) {
91
92
93
94
95
96
97
system/dapp/manage/executor/managedb.go
@@ -146,11 +146,6 @@ func (a *action) applyConfig(apply *mty.ApplyConfig) (*types.Receipt, error) {
146
return nil, errors.Wrapf(mty.ErrBadConfigOp, "op=%s", apply.Config.Op)
147
}
148
149
- _, err := a.db.Get([]byte(types.ManageKey(apply.Config.Key)))
150
- if err == nil {
151
- return nil, errors.Wrapf(types.ErrNotAllow, "key=%s existed", apply.Config.Key)
152
- }
153
-
154
configStatus := &mty.ConfigStatus{
155
Id: common.ToHex(a.txhash),
156
Config: apply.Config,
0 commit comments