Skip to content

Commit 578d4ab

Browse files
committed
Update start/stop logic for metrics server
1 parent 58d7bc7 commit 578d4ab

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

bootstrap/bootstrap.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
flowGo "github.com/onflow/flow-go/model/flow"
1616
"github.com/onflow/flow-go/module/component"
1717
flowMetrics "github.com/onflow/flow-go/module/metrics"
18-
"github.com/onflow/flow-go/module/util"
1918
gethTypes "github.com/onflow/go-ethereum/core/types"
2019
"github.com/rs/zerolog"
2120
"github.com/sethvargo/go-limiter/memorystore"
@@ -368,10 +367,6 @@ func (b *Bootstrap) StartMetricsServer(ctx context.Context) error {
368367
b.logger.Info().Msg("bootstrap starting metrics server")
369368

370369
b.metrics = flowMetrics.NewServer(b.logger, uint(b.config.MetricsPort))
371-
err := util.WaitClosed(ctx, b.metrics.Ready())
372-
if err != nil {
373-
return fmt.Errorf("failed to start metrics server: %w", err)
374-
}
375370

376371
return nil
377372
}
@@ -381,7 +376,6 @@ func (b *Bootstrap) StopMetricsServer() {
381376
return
382377
}
383378
b.logger.Warn().Msg("shutting down metrics server")
384-
<-b.metrics.Done()
385379
}
386380

387381
func (b *Bootstrap) StartProfilerServer(_ context.Context) error {

0 commit comments

Comments
 (0)