Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outdated log line #831

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions read.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ func (r *reader) readTOCSections(toc *indexTOC, tags []string) error {
// If we don't recognize the section, we may be reading a newer index than the current version. Use
// a "dummy section" struct to skip over it.
skipSection = true
log.Printf("encountered malformed index section (%s), skipping over it", tag)
log.Printf("encountered unrecognized index section (%s), skipping over it", tag)

switch sectionKind(kind) {
case sectionKindSimple:
sec = &simpleSection{}
case sectionKindCompound:
sec = &lazyCompoundSection{}
sec = &compoundSection{}
Copy link
Member Author

Choose a reason for hiding this comment

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

I went back to compoundSection for simplicity/ consistency. Now that we have skip, it's just as efficient to use compoundSection.

case sectionKindCompoundLazy:
sec = &lazyCompoundSection{}
default:
Expand Down
Loading