Skip to content

Commit 131f884

Browse files
committed
chore: remove redondant typing
1 parent 92fd8c8 commit 131f884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cache/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (c *Cache) Get(pkg *packages.Package, mode HashMode, key string, data any)
9595
}
9696

9797
func (c *Cache) buildKey(pkg *packages.Package, mode HashMode, key string) (cache.ActionID, error) {
98-
return timeutils.TrackStage[cache.ActionID](c.sw, "key build", func() (cache.ActionID, error) {
98+
return timeutils.TrackStage(c.sw, "key build", func() (cache.ActionID, error) {
9999
actionID, err := c.pkgActionID(pkg, mode)
100100
if err != nil {
101101
return actionID, err
@@ -237,7 +237,7 @@ func (c *Cache) putBytes(actionID cache.ActionID, buf *bytes.Buffer) error {
237237
func (c *Cache) getBytes(actionID cache.ActionID) ([]byte, error) {
238238
c.ioSem <- struct{}{}
239239

240-
cachedData, err := timeutils.TrackStage[[]byte](c.sw, "cache io", func() ([]byte, error) {
240+
cachedData, err := timeutils.TrackStage(c.sw, "cache io", func() ([]byte, error) {
241241
b, _, errGB := cache.GetBytes(c.lowLevelCache, actionID)
242242
return b, errGB
243243
})

0 commit comments

Comments
 (0)