Skip to content

feat: Add Name() to source and destination clients#29

Merged
yevgenypats merged 3 commits intomainfrom
add-name
Sep 1, 2022
Merged

feat: Add Name() to source and destination clients#29
yevgenypats merged 3 commits intomainfrom
add-name

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

Currently it uses the example config GRPC call to get the name (previously not exposed via the client). In the future we could change it for a Name GRPC call, if we wanted.

@github-actions github-actions bot added the feat label Aug 31, 2022
@hermanschaaf hermanschaaf changed the title feat: add Name() to source and destination clients feat: Add Name() to source and destination clients Aug 31, 2022
@github-actions github-actions bot added feat and removed feat labels Aug 31, 2022
}

func (c *DestinationClient) Name(ctx context.Context) (string, error) {
res, err := c.pbClient.GetExampleConfig(ctx, &pb.GetExampleConfig_Request{})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we create a protobuf call just for that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, will update 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done; the RPC calls have been split into three separate ones now (name, version, config)

@yevgenypats yevgenypats merged commit addd6c8 into main Sep 1, 2022
@yevgenypats yevgenypats deleted the add-name branch September 1, 2022 08:34
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