Skip to content

Commit 3a6efb7

Browse files
authored
fix ignored json tag (#232)
Signed-off-by: Ningxuan Wang <[email protected]>
1 parent 31631c3 commit 3a6efb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/core/kafka.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ type KafkaCommand struct {
6060
NonWritable bool `json:"nonWritable,omitempty"`
6161

6262
// recover data for io attack
63-
OriginModeOfFiles map[string]uint32 `json:"-"`
64-
OriginConfig string `json:"-"`
63+
OriginModeOfFiles map[string]uint32 `json:"originModeOfFiles,omitempty"`
64+
OriginConfig string `json:"originConfig,omitempty"`
6565
}
6666

6767
func (c *KafkaCommand) Validate() error {

pkg/core/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type RedisCommand struct {
4747
Expiration string `json:"expiration,omitempty"`
4848
Option string `json:"option,omitempty"`
4949

50-
OriginCacheSize string `json:"-"`
50+
OriginCacheSize string `json:"originCacheSize,omitempty"`
5151
}
5252

5353
func (r *RedisCommand) Validate() error {

0 commit comments

Comments
 (0)