Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make config.Cmd and config.RunnerFunc mutually exclusive #272

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

tomhjp
Copy link
Contributor

@tomhjp tomhjp commented Aug 24, 2023

A set of small follow-ups to #270:

  • Make ClientConfig.Cmd and ClientConfig.RunnerFunc mutually exclusive
  • Clients setting RunnerFunc can call ReattachConfig() but need to supply their own ReattachFunc as it can't necessarily be derived from RunnerFunc. Exercise ReattachConfig() in tests in a way that previously panicked.
  • Improve 1 logger line for non-cmd implementations.
  • Add ID() function to client; accommodates creating a ReattachFunc and also useful for client's debug log information.

A set of small follow-ups to #270:
* Make `config.Cmd` and `config.RunnerFunc` mutually exclusive.
* Clients setting `RunnerFunc` can call `ReattachConfig` but need to supply
  their own `ReattachFunc` as it can't necessarily be derived from `RunnerFunc`.
  Exercise `ReattachConfig()` in tests in a way that previously panicked.
* Improve 1 logger line for non-cmd implementations.
* Add `ID()` function to client; allows clients to construct a `ReattachFunc`
  and also useful for client's debug log information.
Copy link
Contributor

@swenson swenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomhjp
Copy link
Contributor Author

tomhjp commented Aug 25, 2023

Thanks!

@tomhjp tomhjp merged commit 8b178aa into main Aug 25, 2023
@tomhjp tomhjp deleted the 270-follow-ups branch August 25, 2023 10:29
@tomhjp tomhjp mentioned this pull request Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants