Skip to content

Commit e844d1b

Browse files
authored
Minor cleanup. (#610)
- Remove unused compactor type. - Add comment to WithDecoderConcurrency explaining what a negative value does.
1 parent 4e05972 commit e844d1b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pkg/dotc1z/decoder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ func WithDecoderMaxDecodedSize(n uint64) DecoderOption {
107107
// WithDecoderConcurrency sets the number of created decoders.
108108
// Default is 1, which disables async decoding/concurrency.
109109
// 0 uses GOMAXPROCS.
110+
// -1 uses GOMAXPROCS or 4, whichever is lower.
110111
func WithDecoderConcurrency(n int) DecoderOption {
111112
return func(o *decoderOptions) error {
112113
o.decoderConcurrency = n

pkg/synccompactor/compactor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ var tracer = otel.Tracer("baton-sdk/pkg.synccompactor")
2626
type CompactorType string
2727

2828
const (
29-
CompactorTypeNaive CompactorType = "naive"
3029
CompactorTypeAttached CompactorType = "attached"
3130
)
3231

0 commit comments

Comments
 (0)