Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robbydyer committed May 30, 2024
1 parent 3fd9817 commit 48ec2d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/board/image/imageboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ IMAGES:

if nextIndex < len(images) {
if images[nextIndex].isGif {
pCtx, pCancel := context.WithTimeout(ctx, preloaderTimeout)
pCtx, pCancel := context.WithTimeout(context.Background(), preloaderTimeout)
defer pCancel()
wg.Add(1)
go preloadGif(pCtx, images[nextIndex])
Expand Down
2 changes: 1 addition & 1 deletion internal/nhl/nhl.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func New(ctx context.Context, logger *zap.Logger) (*NHL, error) {
}

c := cron.New()
if _, err := c.AddFunc("0 5 * * *", func() { n.CacheClear(ctx) }); err != nil {
if _, err := c.AddFunc("0 5 * * *", func() { n.CacheClear(context.Background()) }); err != nil {
return n, fmt.Errorf("failed to set cron job for cacheClear: %w", err)
}
c.Start()
Expand Down
2 changes: 1 addition & 1 deletion internal/sportsmatrix/sportsmatrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func (b *TestBoard) ScrollMode() bool {
func (b *TestBoard) SetStateChangeNotifier(st board.StateChangeNotifier) {
}

// nolint: paralleltest
func TestSportsMatrix(t *testing.T) {
t.Parallel()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
logger := zaptest.NewLogger(t, zaptest.Level(zapcore.ErrorLevel))
Expand Down

0 comments on commit 48ec2d0

Please sign in to comment.