Skip to content

Commit

Permalink
fix hotttl type
Browse files Browse the repository at this point in the history
  • Loading branch information
panawala committed Feb 23, 2023
1 parent 43ac474 commit eb6a2a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions log_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type LogStore struct {

AppendMeta bool `json:"appendMeta"`
TelemetryType string `json:"telemetryType"`
HotTTL uint32 `json:"hot_ttl,omitempty"`
Mode string `json:"mode,omitempty"` // "lite" or "standard"(default), can't be modified after creation
HotTTL int32 `json:"hot_ttl,omitempty"`
Mode string `json:"mode,omitempty"` // "query" or "standard"(default), can't be modified after creation

CreateTime uint32 `json:"createTime,omitempty"`
LastModifyTime uint32 `json:"lastModifyTime,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion logstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (s *LogstoreTestSuite) TestCreateLogStoreWithNewRequestBody() {
s.Equal(true, store.AutoSplit)
s.Equal(16, store.MaxSplitShard)
s.Equal(false, store.AppendMeta)
s.Equal(uint32(0), store.HotTTL)
s.Equal(0, store.HotTTL)
}

func (s *LogstoreTestSuite) TestCheckLogStore() {
Expand Down

0 comments on commit eb6a2a4

Please sign in to comment.