-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: make
NewClient()
api wrapper accept token as input
It feels like the proper thing to do is have the NewClient() wrapper func accept the token as a struct field param to use to configure the api client similar to the other params, rather than have this internal wrapper func find and retrieve the token itself from the env. This refactors things to surface the token retreival to the main package in the `Run()` func for use with creating the api client to provide to the exporter/sd workers.
- Loading branch information
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters