Reduce the flush reading anchor delay

This commit is contained in:
LittleSheep 2025-02-23 11:43:09 +08:00
parent acd23deed4
commit c558044646

View File

@ -2,12 +2,13 @@ package main
import (
"fmt"
"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
"github.com/fatih/color"
"os"
"os/signal"
"syscall"
"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
"github.com/fatih/color"
"git.solsynth.dev/hypernet/messaging/pkg/internal/gap"
"git.solsynth.dev/hypernet/messaging/pkg/internal/grpc"
@ -83,7 +84,7 @@ func main() {
// Configure timed tasks
quartz := cron.New(cron.WithLogger(cron.VerbosePrintfLogger(&log.Logger)))
quartz.AddFunc("@every 60m", services.DoAutoDatabaseCleanup)
quartz.AddFunc("@every 1m", services.FlushReadingAnchor)
quartz.AddFunc("@every 30s", services.FlushReadingAnchor)
quartz.Start()
// Messages