mirror of https://github.com/chaos-mesh/chaosd.git
fix ignored json tag (#232)
Signed-off-by: Ningxuan Wang <wanxfinger@gmail.com>
This commit is contained in:
parent
31631c3178
commit
3a6efb7db2
|
@ -60,8 +60,8 @@ type KafkaCommand struct {
|
|||
NonWritable bool `json:"nonWritable,omitempty"`
|
||||
|
||||
// recover data for io attack
|
||||
OriginModeOfFiles map[string]uint32 `json:"-"`
|
||||
OriginConfig string `json:"-"`
|
||||
OriginModeOfFiles map[string]uint32 `json:"originModeOfFiles,omitempty"`
|
||||
OriginConfig string `json:"originConfig,omitempty"`
|
||||
}
|
||||
|
||||
func (c *KafkaCommand) Validate() error {
|
||||
|
|
|
@ -47,7 +47,7 @@ type RedisCommand struct {
|
|||
Expiration string `json:"expiration,omitempty"`
|
||||
Option string `json:"option,omitempty"`
|
||||
|
||||
OriginCacheSize string `json:"-"`
|
||||
OriginCacheSize string `json:"originCacheSize,omitempty"`
|
||||
}
|
||||
|
||||
func (r *RedisCommand) Validate() error {
|
||||
|
|
Loading…
Reference in New Issue