Skip to content

Commit

Permalink
Comments for valid values of PerPartitionBytes and RetentionDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdiep committed Oct 22, 2020
1 parent fb8200d commit 04abefd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubsublite/config.go
Expand Up @@ -51,12 +51,12 @@ type TopicConfig struct {
// The provisioned storage, in bytes, per partition. If the number of bytes
// stored in any of the topic's partitions grows beyond this value, older
// messages will be dropped to make room for newer ones, regardless of the
// value of `RetentionDuration`.
// value of `RetentionDuration`. Must be > 0.
PerPartitionBytes int64

// How long a published message is retained. If set to `InfiniteRetention`,
// messages will be retained as long as the bytes retained for each partition
// is below `PerPartitionBytes`.
// is below `PerPartitionBytes`. Otherwise, must be > 0.
RetentionDuration time.Duration
}

Expand Down

0 comments on commit 04abefd

Please sign in to comment.