-
Notifications
You must be signed in to change notification settings - Fork 11
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
add context #312
add context #312
Conversation
40940f9
to
32ff16a
Compare
32ff16a
to
fe20a39
Compare
fe20a39
to
efffc37
Compare
efffc37
to
4ea6bf4
Compare
4ea6bf4
to
10f448b
Compare
daf024d
to
56d7407
Compare
pkg/loop/adapter.go
Outdated
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.
what happened here? unused?
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.
Yeah it only served to bridge the gap with context.
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.
I only looked at the monitoring package.
I'm confused by this change but I don't have context so I't only a "Comment" review.
@@ -36,7 +36,7 @@ func TestKafkaExporter(t *testing.T) { | |||
nodes := []NodeConfig{generateNodeConfig()} | |||
exporter, err := factory.NewExporter(ExporterParams{chainConfig, feedConfig, nodes}) | |||
require.NoError(t, err) | |||
envelope, err := generateEnvelope() | |||
envelope, err := generateEnvelope(ctx) |
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.
I'm confused by the introduction of context here. Most of these methods have no concurrency in their implementation - ctx is not needed and won't help.
Take generateEnvelope
, it produces a structure filled with random values. https://github.com/smartcontractkit/chainlink-common/pull/312/files#diff-be6ec1c2691cf18a8a73b7ea25c78bab3dc41d5bccde1df3e9626310e849306bR454-R477
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.
What is the relevance of concurrency? We are motivated by carrying request scoped values for tracing.
This func calls generateContractConfig
, which calls median.StandardOnchainConfigCodec.Encode
, which now requires a context.
https://smartcontract-it.atlassian.net/browse/BCF-2887
Supports: