Skip to content

Commit 41acc4f

Browse files
bdchathamclaude
andcommitted
fix: use net.DefaultResolver.LookupHost with context, gofmt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 678fc67 commit 41acc4f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/controller/nodedeployment/networking.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ type effectiveRoute struct {
3939
Port int32
4040
}
4141

42-
4342
// hasExternalService returns true when the deployment has an external Service configured.
4443
func (r *SeiNodeDeploymentReconciler) hasExternalService(group *seiv1alpha1.SeiNodeDeployment) bool {
4544
return group.Spec.Networking != nil && group.Spec.Networking.Service != nil
@@ -113,7 +112,7 @@ func (r *SeiNodeDeploymentReconciler) resolveExternalP2PAddress(ctx context.Cont
113112
// assigned immediately by AWS but DNS propagation takes a moment.
114113
host, _, _ := net.SplitHostPort(addr)
115114
if net.ParseIP(host) == nil {
116-
if _, err := net.LookupHost(host); err != nil {
115+
if _, err := net.DefaultResolver.LookupHost(ctx, host); err != nil {
117116
log.FromContext(ctx).Info("external address not yet resolvable", "host", host)
118117
return ""
119118
}

0 commit comments

Comments
 (0)