Skip to content

refactor: replace remaining sort.Slice calls with slices - #919

Open
luangucun wants to merge 1 commit into
streamingfast:developfrom
luangucun:service/clock-sortfunc
Open

refactor: replace remaining sort.Slice calls with slices#919
luangucun wants to merge 1 commit into
streamingfast:developfrom
luangucun:service/clock-sortfunc

Conversation

@luangucun

@luangucun luangucun commented Sep 2, 2026

Copy link
Copy Markdown

Description

replace remaining sort.Slice calls with slices

Testing

  • go test ./service/...

@GabrielCartier GabrielCartier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are still a lot of call sites of sort.slice, you mind doing a sweep of the codebase to change it everywhere, then we can approve.

Signed-off-by: luangucun <luangucun@outlook.com>
@luangucun
luangucun force-pushed the service/clock-sortfunc branch from df46fb8 to 09e3234 Compare September 2, 2026 12:55
@luangucun

Copy link
Copy Markdown
Author

There are still a lot of call sites of sort.slice, you mind doing a sweep of the codebase to change it everywhere, then we can approve.

Done, thanks for pointing that out. I swept the codebase and replaced all remaining sort.Slice and sort.SliceStable call sites with the appropriate slices APIs (Sort, SortFunc, and SortStableFunc). There are no remaining sort.Slice usages in the codebase.

@luangucun

Copy link
Copy Markdown
Author

@GabrielCartier Please review it again.

@luangucun luangucun changed the title service: Use slices.SortFunc for clock ordering refactor: replace remaining sort.Slice calls with slices Sep 2, 2026
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