Skip to content

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

Open
lianxmfor wants to merge 1 commit into
mainfrom
refactor/oomstore-join
Open

refactor(oomstore/join): return the result instead of writing directly to the file#1177
lianxmfor wants to merge 1 commit into
mainfrom
refactor/oomstore-join

Conversation

@lianxmfor

Copy link
Copy Markdown
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
Comment thread oomagent/server.go
Comment thread pkg/oomstore/join.go
ctx, cancel := context.WithCancel(ctx)
defer cancel()

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

Copy link
Copy Markdown
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
Copy Markdown
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.

@lianxmfor lianxmfor force-pushed the refactor/oomstore-join branch from fb217a4 to 90031e0 Compare February 11, 2022 06:31
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