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

Fix some nits from previous commit #71

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Fix some nits from previous commit #71

merged 1 commit into from
Oct 12, 2020

Conversation

guoger
Copy link
Member

@guoger guoger commented Oct 11, 2020

  • move process out of main
  • correct some grammar in log msg

Signed-off-by: Jay Guo guojiannan1101@gmail.com

Comment on lines +84 to +99
go func() {
for i := 0; i < N; i++ {
prop, err := CreateProposal(
crypto,
config.Channel,
config.Chaincode,
config.Version,
config.Args...,
)
if err != nil {
errorCh <- errors.Wrapf(err, "error creating proposal")
return
}
raw <- &Elements{Proposal: prop}
}
}()
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 is now put into a go routine

Copy link
Member

Choose a reason for hiding this comment

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

is it necessary to do so, I mean put into a go routine ?
or say a new struct with N, crypto, config, errorCh to make it similar with observer?

@guoger guoger force-pushed the nit-fixing branch 2 times, most recently from 03490ae to f3afcdc Compare October 12, 2020 01:50
- move process out of main
- correct some grammar in log msg

Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
pkg/infra/client_test.go Show resolved Hide resolved
Comment on lines +84 to +99
go func() {
for i := 0; i < N; i++ {
prop, err := CreateProposal(
crypto,
config.Channel,
config.Chaincode,
config.Version,
config.Args...,
)
if err != nil {
errorCh <- errors.Wrapf(err, "error creating proposal")
return
}
raw <- &Elements{Proposal: prop}
}
}()
Copy link
Member

Choose a reason for hiding this comment

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

is it necessary to do so, I mean put into a go routine ?
or say a new struct with N, crypto, config, errorCh to make it similar with observer?

@SamYuan1990 SamYuan1990 merged commit 64106b8 into master Oct 12, 2020
@SamYuan1990 SamYuan1990 deleted the nit-fixing branch October 12, 2020 09:06
guoger added a commit that referenced this pull request Nov 6, 2020
- move process out of main
- correct some grammar in log msg

Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants