Skip to content

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

Open
luangucun wants to merge 1 commit into
berty:mainfrom
luangucun:refactor/log-file-sort
Open

luangucun wants to merge 1 commit into
berty:mainfrom
luangucun:refactor/log-file-sort

Conversation

@luangucun

Copy link
Copy Markdown

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

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