You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: timer.go
    path of file: ./repos/marketstore/contrib/alpacabkfeeder/timer
    
    the code of the file until where you have to start completion: package timer

import (
	"context"
	"time"

	"github.com/alpacahq/marketstore/v4/utils/log"
)

// RunEveryDayAt runs a specified function every day at a specified hour.
func RunEveryDayAt(ctx context.Context, t time.Time, f func()) {
	timeToNextRun := timeToNext(time.Now(), t)

	// run at a specified time on the next day
	time.AfterFunc(timeToNextRun, f)

	// at the same time, run 
    
func RunEveryDayAt(ctx context.Context, t time.Time, f func()) {
	timeToNextRun := timeToNext(time.Now(), t)

	// run at a specified time on the next day
	time.AfterFunc(timeToNextRun, f)

	// at the same time, run  every 24 hour
	time.AfterFunc(timeToNextRun, func() {
		ticker := time.NewTicker(24 * time.Hour)

		for {
			select {
			case <-ticker.C:
				f()
			case <-ctx.Done():
				log.Debug("job stopped due to ctx.Done()")
				ticker.Stop()
				return
			}
		}
	})
}