Skip to content

Commit

Permalink
Change comments
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Protasio <approtas@amazon.com>
  • Loading branch information
alanprot committed Jul 7, 2022
1 parent 180a748 commit 0878881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
### Added

- [#5440](https://github.com/thanos-io/thanos/pull/5440) HTTP metrics: export number of in-flight HTTP requests.
- [#5475](https://github.com/thanos-io/thanos/pull/5475) Compact/Store: Added `--block-files-concurrency` allowing to configure number of go routines for download block files during compaction.
- [#5475](https://github.com/thanos-io/thanos/pull/5475) Compact/Store: Added `--block-files-concurrency` allowing to configure number of go routines for download/upload block files during compaction.

### Changed

Expand Down
8 changes: 4 additions & 4 deletions pkg/objstore/objstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ func ApplyIterOptions(options ...IterOption) IterParams {
return out
}

// DownloadOption configures the provided params.
// DownloadDirOption configures the provided params.
type DownloadDirOption func(params *DownloadDirParams)

// DownloadParams holds the Download() parameters and is used by objstore clients implementations.
// DownloadDirParams holds the DownloadDir() parameters and is used by objstore clients implementations.
type DownloadDirParams struct {
concurrency int
ignoredPaths []string
Expand Down Expand Up @@ -154,15 +154,15 @@ func applyDownloadDirOptions(options ...DownloadDirOption) DownloadDirParams {
return out
}

// DownloadOption configures the provided params.
// UploadDirOption configures the provided params.
type UploadDirOption func(params *UploadDirParams)

// UploadDirParams holds the UploadDir() parameters and is used by objstore clients implementations.
type UploadDirParams struct {
concurrency int
}

// WithUploadConcurrency is an option to set the concurrency of the download operation.
// WithUploadConcurrency is an option to set the concurrency of the upload operation.
func WithUploadConcurrency(concurrency int) UploadDirOption {
return func(params *UploadDirParams) {
params.concurrency = concurrency
Expand Down

0 comments on commit 0878881

Please sign in to comment.