Skip to content

Commit

Permalink
Rename fetchSortValue to FetchSortValue in SortValueFetcher.
Browse files Browse the repository at this point in the history
This change makes the method public by capitalizing its name, allowing it to be accessed outside its package. This update is necessary for external packages that need to use this method.
  • Loading branch information
billettc committed Nov 27, 2024
1 parent c5220c6 commit 41deda8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

type SortValueFetcher[C any] interface {
fetchSortValue(ctx context.Context, client C) (sortValue uint64, err error)
FetchSortValue(ctx context.Context, client C) (sortValue uint64, err error)
}

type SortDirection int
Expand All @@ -25,7 +25,7 @@ func Sort[C any](ctx context.Context, clients *Clients[C], sortValueFetch SortVa
for i, client := range clients.clients {
var v uint64
var err error
v, err = sortValueFetch.fetchSortValue(ctx, client)
v, err = sortValueFetch.FetchSortValue(ctx, client)
if err != nil {
//do nothing
}
Expand Down

0 comments on commit 41deda8

Please sign in to comment.