Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
cleaning up main file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Gromov committed Sep 26, 2017
1 parent 1deb7e2 commit 053afb7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions services/r2ctl/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ type configuration struct {
// Logging configuration.
Logging log.Configuration `yaml:"logging"`

// Metrics configuration.
// Metrics instrument.MetricsConfiguration `yaml:"metrics"`

// HTTP server configuration.
HTTP serverConfig `yaml:"http"`
}
Expand Down Expand Up @@ -117,17 +114,8 @@ func main() {
logger.Fatalf("No valid port configured. Can't start.")
}

// scope, closer, err := cfg.Metrics.NewRootScope()
// if err != nil {
// logger.Fatalf("error creating metrics root scope: %v", err)
// }
// defer closer.Close()

instrumentOpts := instrument.NewOptions().
SetLogger(logger)
// SetMetricsScope(scope).
// SetMetricsSamplingRate(cfg.Metrics.SampleRate()).
// SetReportInterval(cfg.Metrics.ReportInterval())

listenAddr := fmt.Sprintf("%s:%d", cfg.HTTP.Host, cfg.HTTP.Port)
serverOpts := cfg.HTTP.newHTTPServerOptions(instrumentOpts)
Expand Down

0 comments on commit 053afb7

Please sign in to comment.