Skip to content

Commit

Permalink
feat(torch): reorder imports
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ramon Mañes <[email protected]>
  • Loading branch information
tty47 committed Nov 14, 2023
1 parent 3e818de commit 3d5ea25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package handlers

import (
"context"
"golang.org/x/sync/errgroup"
"net/http"
"os"
"os/signal"
Expand All @@ -12,6 +11,7 @@ import (

"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"

"github.com/celestiaorg/torch/config"
"github.com/celestiaorg/torch/pkg/db/redis"
Expand Down Expand Up @@ -80,9 +80,9 @@ func Run(cfg config.MutualPeersConfig) {
log.Info("Server Started...")
log.Info("Listening on port: " + httpPort)

go BackgroundGenerateLBMetric()
// check if Torch has to generate the metric or not.
// check if Torch has to generate the metric or not, we invoke this function async to continue the execution flow.
go BackgroundGenerateHashMetric(cfg)
go BackgroundGenerateLBMetric()

// Initialize the goroutine to check the nodes in the queue.
log.Info("Initializing queues to process the nodes...")
Expand Down

0 comments on commit 3d5ea25

Please sign in to comment.