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

refactor(oomstore/join): return the result instead of writing directly to the file #1177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lianxmfor
Copy link
Member

this PR does:

  1. refactor oomstore/join: return the result instead of writing directly to the file
  2. refactor oomcli/join and oomagent/join
  3. make GetEntityRowsFromInputFile private

@lianxmfor lianxmfor self-assigned this Feb 11, 2022
ctx, cancel := context.WithCancel(ctx)
defer cancel()

func (s *OomStore) Join(ctx context.Context, opt types.JoinOpt) (*types.JoinResult, error) {
Copy link
Member

Choose a reason for hiding this comment

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

In this way, Go SDK will behave differently from other SDKs, is that expected?

Copy link
Member Author

Choose a reason for hiding this comment

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

This makes go SDK more flexible. Because other SDKs need to go through the oomagent layer of wrappers.
As for the inconsistent behavior, I'm not quite sure of the scope of the impact, we can discuss it.

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