use cases consistently
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
2026-02-24 07:51:53 -08:00
parent 79016134b6
commit 31802ac9fc
2 changed files with 5 additions and 5 deletions

View File

@@ -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
}

View File

@@ -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),
)
}