Skip to content

Commit

Permalink
fix ignored json tag (#232)
Browse files Browse the repository at this point in the history
Signed-off-by: Ningxuan Wang <[email protected]>
  • Loading branch information
FingerLeader authored Jan 31, 2023
1 parent 31631c3 commit 3a6efb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/core/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3a6efb7

Please sign in to comment.