Skip to content

Commit

Permalink
switch to go 1.23
Browse files Browse the repository at this point in the history
refactoring
add context passing everywhere
add new caching logic
  • Loading branch information
vintikzzz committed Nov 5, 2024
1 parent ebf6df6 commit d0cc13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cache_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewCacheMap(cl *http.Client) *CacheMap {
}

func (s *CacheMap) Get(ctx context.Context, url *MyURL) (bool, error) {
res, err := s.LazyMap.Get(url.String(), func() (interface{}, error) {
res, err := s.LazyMap.Get(url.Path, func() (interface{}, error) {
return s.get(ctx, url)
})
if err != nil {
Expand Down

0 comments on commit d0cc13a

Please sign in to comment.