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

feat: background start for connector plugins #1315

Merged
merged 7 commits into from
May 25, 2023

Conversation

EnriqueL8
Copy link
Contributor

No description provided.

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

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

This looks great @EnriqueL8!
Couple of minor suggestions from patterns we've found helpful in other code, and a query on goroutines.

internal/blockchain/ethereum/ethereum.go Outdated Show resolved Hide resolved
internal/blockchain/ethereum/ethereum.go Outdated Show resolved Hide resolved
internal/blockchain/ethereum/ethereum.go Outdated Show resolved Hide resolved
internal/blockchain/ethereum/ethereum.go Outdated Show resolved Hide resolved
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@EnriqueL8
Copy link
Contributor Author

There seems to be flaky test I introduced - will fix that

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@codecov-commenter
Copy link

Codecov Report

Merging #1315 (e63dc71) into main (56b8d2f) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1315   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          310       310           
  Lines        20960     21040   +80     
=========================================
+ Hits         20960     21040   +80     
Impacted Files Coverage Δ
internal/blockchain/ethereum/config.go 100.00% <100.00%> (ø)
internal/blockchain/ethereum/ethereum.go 100.00% <100.00%> (ø)
internal/blockchain/ethereum/eventstream.go 100.00% <100.00%> (ø)
internal/blockchain/fabric/config.go 100.00% <100.00%> (ø)
internal/blockchain/fabric/eventstream.go 100.00% <100.00%> (ø)
internal/blockchain/fabric/fabric.go 100.00% <100.00%> (ø)
internal/dataexchange/ffdx/config.go 100.00% <100.00%> (ø)
internal/dataexchange/ffdx/ffdx.go 100.00% <100.00%> (ø)
internal/namespace/manager.go 100.00% <100.00%> (ø)
internal/tokens/fftokens/config.go 100.00% <100.00%> (ø)
... and 1 more

@EnriqueL8 EnriqueL8 marked this pull request as ready for review May 25, 2023 07:45
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
e.backgroundStart = e.ethconnectConf.GetBool(EthconnectBackgroundStart)
if e.backgroundStart {
e.backgroundRetry = &retry.Retry{
InitialDelay: fftypes.ParseToDuration(defaultBackgroundInitialDelay),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think these should be config settings @EnriqueL8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I did think about it but wasn't 100% sure :) - will do it!

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

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

👍

@peterbroadhurst peterbroadhurst merged commit 3a59493 into hyperledger:main May 25, 2023
14 checks passed
@peterbroadhurst peterbroadhurst deleted the plugin_init branch May 25, 2023 16:35
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.

None yet

3 participants