diff --git a/internal/subaccountsync/subaccount_sync_service.go b/internal/subaccountsync/subaccount_sync_service.go index 99ebd86adc..a7609ede96 100644 --- a/internal/subaccountsync/subaccount_sync_service.go +++ b/internal/subaccountsync/subaccount_sync_service.go @@ -95,7 +95,7 @@ func (s *SyncService) Run() { http.Handle("/metrics", promHandler) go func() { - address := fmt.Sprintf(":%d", s.cfg.MetricsPort) + address := fmt.Sprintf(":%s", s.cfg.MetricsPort) err := http.ListenAndServe(address, nil) if err != nil { logger.Error(fmt.Sprintf("while serving metrics: %s", err))