Skip to content

Commit

Permalink
fix: rollback dal checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 22, 2024
1 parent f9c0ed5 commit e0ff429
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions node/cmd/sentinel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sync"

"bisonai.com/miko/node/pkg/checker/balance"
// "bisonai.com/miko/node/pkg/checker/dal"
// "bisonai.com/miko/node/pkg/checker/dalstats"
"bisonai.com/miko/node/pkg/checker/dal"
"bisonai.com/miko/node/pkg/checker/dalstats"
"bisonai.com/miko/node/pkg/checker/dbcronjob"
"bisonai.com/miko/node/pkg/checker/event"
"bisonai.com/miko/node/pkg/checker/health"
Expand Down Expand Up @@ -111,29 +111,29 @@ func main() {

log.Info().Msg("peers checker started")

// wg.Add(1)
// go func() {
// defer wg.Done()
// err := dal.Start(ctx)
// if err != nil {
// log.Error().Err(err).Msg("error starting dal checker")
// os.Exit(1)
// }
// }()

// log.Info().Msg("dal checker started")

// wg.Add(1)
// go func() {
// defer wg.Done()
// err := dalstats.Start(ctx)
// if err != nil {
// log.Error().Err(err).Msg("error starting dalstats checker")
// os.Exit(1)
// }
// }()

// log.Info().Msg("dal stats checker started")
wg.Add(1)
go func() {
defer wg.Done()
err := dal.Start(ctx)
if err != nil {
log.Error().Err(err).Msg("error starting dal checker")
os.Exit(1)
}
}()

log.Info().Msg("dal checker started")

wg.Add(1)
go func() {
defer wg.Done()
err := dalstats.Start(ctx)
if err != nil {
log.Error().Err(err).Msg("error starting dalstats checker")
os.Exit(1)
}
}()

log.Info().Msg("dal stats checker started")

wg.Add(1)
go func() {
Expand Down

0 comments on commit e0ff429

Please sign in to comment.