Skip to content

Commit

Permalink
metrics port configuration corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-pieszka committed Apr 15, 2024
1 parent 1f00e2d commit 74966d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/subaccountsync/subaccount_sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ func (s *SyncService) Run() {
http.Handle("/metrics", promHandler)

go func() {
err := http.ListenAndServe(s.cfg.MetricsPort, nil)
address := fmt.Sprintf(":%d", s.cfg.MetricsPort)

Check failure on line 98 in internal/subaccountsync/subaccount_sync_service.go

View workflow job for this annotation

GitHub Actions / run-go-linter

printf: fmt.Sprintf format %d has arg s.cfg.MetricsPort of wrong type string (govet)

Check failure on line 98 in internal/subaccountsync/subaccount_sync_service.go

View workflow job for this annotation

GitHub Actions / run-go-tests / build

fmt.Sprintf format %d has arg s.cfg.MetricsPort of wrong type string
err := http.ListenAndServe(address, nil)
if err != nil {
logger.Error(fmt.Sprintf("while serving metrics: %s", err))
}
Expand Down

0 comments on commit 74966d4

Please sign in to comment.