Skip to content

Commit

Permalink
feat: remove comments
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <git@mattglei.ch>
  • Loading branch information
gleich committed Dec 29, 2024
1 parent 1cfecca commit 4902b01
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type cacheData[T any] struct {
Updated time.Time `json:"updated"`
}

// Handle a GET request to load data from the given cache
func (c *Cache[T]) ServeHTTP() http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
c.dataMutex.RLock()
Expand All @@ -63,7 +62,6 @@ func (c *Cache[T]) ServeHTTP() http.HandlerFunc {
})
}

// Update the given cache
func (c *Cache[T]) Update(data T) {
var updated bool
c.dataMutex.Lock()
Expand Down

0 comments on commit 4902b01

Please sign in to comment.