We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239af76 commit cedbc10Copy full SHA for cedbc10
1 file changed
main.go
@@ -62,6 +62,13 @@ func main() {
62
data.Servers = servers // Update the global Servers variable with data from MongoDB
63
cursor.Close(context.Background())
64
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
72
err = task.LoadServerCache(ctx)
73
if err != nil {
74
util.Logger.Warn().Err(err).Msg("Failed to load server cache from MongoDB")
0 commit comments