From 31802ac9fc30aaff734913563c6cf4ba5a9251ad Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Tue, 24 Feb 2026 07:51:53 -0800 Subject: [PATCH] use cases consistently --- pkg/api/handlers/times.go | 6 +++--- pkg/cmds/api.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/api/handlers/times.go b/pkg/api/handlers/times.go index 5e428d8..fc1b495 100644 --- a/pkg/api/handlers/times.go +++ b/pkg/api/handlers/times.go @@ -25,15 +25,15 @@ type TimesHandler struct { } // NewTimesHandler creates a new TimesHandler with the provided options. -func NewTimesHandler(http_client *http.Client, storage_url string, options ...HandlerOption) (*TimesHandler, error) { +func NewTimesHandler(httpClient *http.Client, storageUrl string, options ...HandlerOption) (*TimesHandler, error) { baseHandler, err := NewHandler(options...) if err != nil { return nil, err } return &TimesHandler{ Handler: baseHandler, - client: http_client, - url: storage_url, + client: httpClient, + url: storageUrl, }, nil } diff --git a/pkg/cmds/api.go b/pkg/cmds/api.go index 053a157..c1eb691 100644 --- a/pkg/cmds/api.go +++ b/pkg/cmds/api.go @@ -57,7 +57,7 @@ func runAPI(ctx *cli.Context) error { } // Data service client - storage_url := ctx.String("storage-host") + storageUrl := ctx.String("storage-host") return api.NewRouter( api.WithContext(ctx), @@ -65,6 +65,6 @@ func runAPI(ctx *cli.Context) error { api.WithDevClient(devConn), api.WithDataClient(dataConn), api.WithHttpClient(&http.Client{}), - api.WithStorageUrl(storage_url), + api.WithStorageUrl(storageUrl), ) }