Skip to content

Commit 1251127

Browse files
committed
add note to why ranks are loaded at the end
1 parent 648e04d commit 1251127

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmd/live.go

+12
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ func runGloomberg(_ *cobra.Command, _ []string) {
412412

413413
//
414414
// degendata - ranks
415+
// ❕ placed on the end to have the least interference with the calls
416+
// to opensea that fetch the wallet collections at the beginning
417+
// ❗️ probably doesn't matter anymore since we're using the redis cache now
418+
// waiting for more feedback from the community before moving it up
415419
go func() {
416420
if err := degendata.LoadOpenseaRanks(gb); err != nil {
417421
gbl.Log.Errorf("error loading opensea ranks: %v", err)
@@ -443,6 +447,14 @@ func runGloomberg(_ *cobra.Command, _ []string) {
443447
}()
444448
}
445449

450+
// marmot tasks
451+
// gb.CreatePeriodicTask("testing", 5*time.Second, func(gb *gloomberg.Gloomberg) {
452+
// log.Printf("testing tasks lol! %+v", len(gb.Ranks))
453+
// })
454+
// gb.CreateScheduledTask("testing", time.Now().Add(17*time.Second), func(gb *gloomberg.Gloomberg) {
455+
// log.Printf("testing scheduled tasks lol! %+v", len(gb.Ranks))
456+
// })
457+
446458
// loop forever
447459
select {}
448460
}

0 commit comments

Comments
 (0)