From 41deda86306fd9966c299e721805e185d5b271ec Mon Sep 17 00:00:00 2001 From: Charles Billette Date: Wed, 27 Nov 2024 08:59:23 -0500 Subject: [PATCH] Rename fetchSortValue to FetchSortValue in SortValueFetcher. 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. --- rpc/sort.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/sort.go b/rpc/sort.go index c7aafda..5897426 100644 --- a/rpc/sort.go +++ b/rpc/sort.go @@ -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 @@ -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 }