Skip to content

Commit

Permalink
feat: fetch cache takes client as a pointer now
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <git@mattglei.ch>
  • Loading branch information
gleich committed Feb 3, 2025
1 parent 051ed77 commit 91cccd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lcp/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Response[T CacheData] struct {
Updated time.Time
}

func FetchCache[T CacheData](client Client, cache Cache) (Response[T], error) {
func FetchCache[T CacheData](client *Client, cache Cache) (Response[T], error) {
var zeroValue Response[T] // acts as "nil" value to be used when returning an error
if client.Token == "" {
return zeroValue, errors.New("no token provided in client")
Expand Down

0 comments on commit 91cccd9

Please sign in to comment.