Skip to content

Commit

Permalink
fix: fix misleading info in example (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 authored and cprice404 committed Mar 14, 2023

Unverified

No user is associated with the committer email.
1 parent d78e943 commit d00828e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/sortedset-example/main.go
Original file line number Diff line number Diff line change
@@ -55,9 +55,9 @@ func main() {
displayElements(setName, fetchResp)

// Fetch elements in descending order (high -> low)
fmt.Println("\n\nFetching Top 5 elements from sorted set:")
fmt.Println("\n\nFetching all elements from sorted set in descending order:")
fmt.Println("--------------")
top5Rsp, err := client.SortedSetFetch(ctx, &momento.SortedSetFetchRequest{
descendingResp, err := client.SortedSetFetch(ctx, &momento.SortedSetFetchRequest{
CacheName: cacheName,
SetName: setName,
Order: momento.DESCENDING,
@@ -66,7 +66,7 @@ func main() {
panic(err)
}

displayElements(setName, top5Rsp)
displayElements(setName, descendingResp)
}

func getClient() momento.CacheClient {

0 comments on commit d00828e

Please sign in to comment.