Skip to content

Commit 9a9e650

Browse files
committed
chore: update go.mod and apply go fmt
1 parent 6e8f509 commit 9a9e650

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/julienschmidt/httprouter v1.3.0
1111
github.com/prometheus/client_golang v1.20.5
1212
github.com/prometheus/client_model v0.6.1
13+
github.com/prometheus/common v0.62.0
1314
gopkg.in/dnaeon/go-vcr.v4 v4.0.2
1415
)
1516

@@ -19,7 +20,6 @@ require (
1920
github.com/klauspost/compress v1.17.11 // indirect
2021
github.com/kr/text v0.2.0 // indirect
2122
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
22-
github.com/prometheus/common v0.62.0 // indirect
2323
github.com/prometheus/procfs v0.15.1 // indirect
2424
github.com/tidwall/gjson v1.18.0 // indirect
2525
github.com/tidwall/match v1.1.1 // indirect

internal/app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func New(cfg *config.Config, logger *slog.Logger, client *http.Client, version s
3333
vehicleLastSeen := metrics.NewVehicleLastSeen()
3434
backoffStore := config.NewBackoffStore()
3535

36-
configService := config.NewConfigService(logger, client, cfg,backoffStore)
36+
configService := config.NewConfigService(logger, client, cfg, backoffStore)
3737
gtfsService := gtfs.NewGtfsService(staticStore, realtimeStore, boundingBoxStore, logger, client)
3838
metricsService := metrics.NewMetricsService(staticStore, realtimeStore, boundingBoxStore, vehicleLastSeen, logger, client)
3939

internal/app/handlers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestHealthcheckHandler(t *testing.T) {
6767
client := http.Client{}
6868
backoffStore := config.NewBackoffStore()
6969
app := &Application{
70-
ConfigService: config.NewConfigService(logger, &client, cfg,backoffStore),
70+
ConfigService: config.NewConfigService(logger, &client, cfg, backoffStore),
7171
Version: "test-version",
7272
}
7373

internal/config/config_loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func refreshConfig(ctx context.Context, client *http.Client, configURL, configAu
5555
Level: sentry.LevelError,
5656
})
5757
logger.Error("Failed to refresh remote config", "error", err)
58-
}else {
58+
} else {
5959
cfg.UpdateConfig(newServers)
6060
logger.Info("Successfully refreshed server configuration")
6161
}

0 commit comments

Comments
 (0)