-
Notifications
You must be signed in to change notification settings - Fork 70
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
Conversation
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} | ||
} | ||
}() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
03490ae
to
f3afcdc
Compare
- move process out of main - correct some grammar in log msg Signed-off-by: Jay Guo <[email protected]>
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} | ||
} | ||
}() |
There was a problem hiding this comment.
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?
- move process out of main - correct some grammar in log msg Signed-off-by: Jay Guo <[email protected]>
Signed-off-by: Jay Guo [email protected]