Skip to content

Commit cedbc10

Browse files
committed
fix: i am very dumb
1 parent 239af76 commit cedbc10

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ func main() {
6262
data.Servers = servers // Update the global Servers variable with data from MongoDB
6363
cursor.Close(context.Background())
6464

65+
pingJob := task.NewServerJob(0, Servers) // interval unused now
66+
67+
task.StartInfluxWriter(ctx)
68+
task.StartDBWriter(ctx)
69+
70+
go pingJob.StartServerJob(ctx)
71+
6572
err = task.LoadServerCache(ctx)
6673
if err != nil {
6774
util.Logger.Warn().Err(err).Msg("Failed to load server cache from MongoDB")

0 commit comments

Comments
 (0)