Remove recordNewDaily

pull/35/head
Pancakes 7 months ago
parent 1448b6f14d
commit 593c2f82ea
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -61,7 +61,7 @@ func Init() error {
secret = newSecret
}
seed, err := recordNewDaily()
seed, err := db.TryAddDailyRun(Seed())
if err != nil {
log.Print(err)
}
@ -71,7 +71,7 @@ func Init() error {
_, err = scheduler.AddFunc("@daily", func() {
time.Sleep(time.Second)
seed, err = recordNewDaily()
seed, err = db.TryAddDailyRun(Seed())
if err != nil {
log.Printf("error while recording new daily: %s", err)
} else {
@ -99,7 +99,3 @@ func deriveSeed(seedTime time.Time) []byte {
return hashedSeed[:]
}
func recordNewDaily() (string, error) {
return db.TryAddDailyRun(Seed())
}

Loading…
Cancel
Save