Skip to content

Commit

Permalink
Bump version to 2.8.0-rc-202106151929 (streamnative/pulsarctl#372)
Browse files Browse the repository at this point in the history
* Created by streamnative-ci

* Fix the failure tests

* Fix the tests

* Fix the failure tests

* Fix the failure tests

* Fix the failure tests

Co-authored-by: streamnativebot <streamnativebot@users.noreply.github.com>
Co-authored-by: Yong Zhang <zhangyong1025.zy@gmail.com>
  • Loading branch information
3 people authored and tisonkun committed Aug 16, 2023
1 parent d5b6ddf commit 93c0e45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pulsaradmin/pkg/pulsar/utils/backlog_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ package utils
import "github.com/pkg/errors"

type BacklogQuota struct {
Limit int64 `json:"limit"`
Policy RetentionPolicy `json:"policy"`
LimitTime int64 `json:"limitTime"`
LimitSize int64 `json:"limitSize"`
Policy RetentionPolicy `json:"policy"`
}

func NewBacklogQuota(limit int64, policy RetentionPolicy) BacklogQuota {
func NewBacklogQuota(limitSize int64, limitTime int64, policy RetentionPolicy) BacklogQuota {
return BacklogQuota{
Limit: limit,
Policy: policy,
LimitSize: limitSize,
LimitTime: limitTime,
Policy: policy,
}
}

Expand Down
1 change: 1 addition & 0 deletions pulsaradmin/pkg/pulsar/utils/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ type NamespacesData struct {
ClusterIds string `json:"clusterIds"`
RetentionTimeStr string `json:"retentionTimeStr"`
LimitStr string `json:"limitStr"`
LimitTime int64 `json:"limitTime"`
PolicyStr string `json:"policyStr"`
AntiAffinityGroup string `json:"antiAffinityGroup"`
Tenant string `json:"tenant"`
Expand Down

0 comments on commit 93c0e45

Please sign in to comment.