Skip to content

Commit

Permalink
SetDefault instead of Set
Browse files Browse the repository at this point in the history
  • Loading branch information
fishnix committed Oct 3, 2019
1 parent 16b63d2 commit a6e96d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/handlers_spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (s *server) SpaceGetHandler(w http.ResponseWriter, r *http.Request) {
// cache results
// resultCache.Set(spaceID, out, 5*time.Minute)
// ResultsCache[account].Set(spaceID, out, cache.DefaultExpiration)
resultCache.Set(spaceID, out, cache.DefaultExpiration)
resultCache.SetDefault(spaceID, out)
} else {
// The go-cache object was found cached
out = c.([]*costexplorer.ResultByTime)
Expand Down

0 comments on commit a6e96d7

Please sign in to comment.