Commit d6e0de5a authored by Matthew Slipper's avatar Matthew Slipper

go/batch-submitter: Fix metrics server

The metrics server wasn't running because of a space between the host and port.
parent ecef6714
---
'@eth-optimism/batch-submitter-service': patch
---
Fix metrics server
...@@ -293,7 +293,7 @@ func parseWalletPrivKeyAndContractAddr( ...@@ -293,7 +293,7 @@ func parseWalletPrivKeyAndContractAddr(
// NOTE: This method MUST be run as a goroutine. // NOTE: This method MUST be run as a goroutine.
func runMetricsServer(hostname string, port uint64) { func runMetricsServer(hostname string, port uint64) {
metricsPortStr := strconv.FormatUint(port, 10) metricsPortStr := strconv.FormatUint(port, 10)
metricsAddr := fmt.Sprintf("%s: %s", hostname, metricsPortStr) metricsAddr := fmt.Sprintf("%s:%s", hostname, metricsPortStr)
http.Handle("/metrics", promhttp.Handler()) http.Handle("/metrics", promhttp.Handler())
_ = http.ListenAndServe(metricsAddr, nil) _ = http.ListenAndServe(metricsAddr, nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment