Skip to content

refactor(logutil): use slices.SortFunc for log files - #136

Merged
D4ryl00 merged 1 commit into
berty:mainfrom
luangucun:refactor/log-file-sort
Oct 2, 2026
Merged

D4ryl00 merged 1 commit into
berty:mainfrom
luangucun:refactor/log-file-sort

Conversation

@luangucun

Copy link
Copy Markdown
Contributor

What changed

Replace the index-based log-file sort with a typed slices.SortFunc comparator using time.Time.Compare.

Behavior

Log files remain ordered by the same timestamp relation; this is a non-functional refactor.

Testing

  • go test ./pkg/logutil

@jefft0
jefft0 requested a review from D4ryl00 October 2, 2026 08:19

@D4ryl00 D4ryl00 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thank you for the contribution.

@D4ryl00
D4ryl00 merged commit 71f6981 into berty:main Oct 2, 2026
13 checks passed
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.

2 participants