Skip to content

Conversation

jfly
Copy link
Collaborator

@jfly jfly commented Sep 20, 2025

This is part of #334.

I could use some feedback, especially on the parts with conflict markers (<<<).

@jfly jfly marked this pull request as draft September 20, 2025 22:15

func (f *Formatter) MaxBatchSize() int {
if f.config.MaxBatchSize == nil {
return 1024 //<<<
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have 2 other BatchSize constants in treefmt already;

cmd/format/format.go
26:	BatchSize = 1024

walk/walk.go
30:	BatchSize = 1024

Not sure if we really want a 3rd, or if we should instead import one of those here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant