Skip to content

pkg/loop: reinitialise standard capabilities#1638

Merged
jmank88 merged 3 commits intomainfrom
CAPPL-1080-reinitialise
Oct 28, 2025
Merged

pkg/loop: reinitialise standard capabilities#1638
jmank88 merged 3 commits intomainfrom
CAPPL-1080-reinitialise

Conversation

@jmank88
Copy link
Copy Markdown
Contributor

@jmank88 jmank88 commented Oct 22, 2025

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 22, 2025

✅ API Diff Results - No breaking changes


📄 View full apidiff report

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

CCIP does something similar here:

persistedSyncs := ccipProvider.GetSyncRequests()

But is able to grab a reference to the client, which are unable to do for the same fundamental reason of there being no constructor.

krehermann
krehermann previously approved these changes Oct 22, 2025
@jmank88 jmank88 force-pushed the CAPPL-1080-reinitialise branch from 1629bc5 to 7b38eb2 Compare October 27, 2025 22:58
return client, nil
ctx, cancel := context.WithTimeout(ctx, time.Second)
defer cancel()
_, err := client.Info(ctx) // ensure exists by triggering lazy connection with reduced timeout
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seems important to preserve the fast-fail behavior, but then we want to keep any references that we hand out alive from that point. There may be a more graceful way to do this, like as a NewClientConn option, or alternative method.

@jmank88 jmank88 requested a review from krehermann October 27, 2025 23:16
@jmank88 jmank88 enabled auto-merge (squash) October 28, 2025 12:27
@jmank88 jmank88 merged commit e5cda5f into main Oct 28, 2025
18 of 20 checks passed
@jmank88 jmank88 deleted the CAPPL-1080-reinitialise branch October 28, 2025 12:33
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.

3 participants