feat(gw): added connection with retry

This commit is contained in:
ITQ
2025-12-17 18:36:27 +03:00
parent 154e0b0779
commit 383f67893e
3 changed files with 31 additions and 2 deletions
@@ -15,7 +15,7 @@ type CompetitionClient struct {
}
func NewCompetitionClient(ctx context.Context, address string, factory *ClientFactory) (*CompetitionClient, error) {
conn, err := factory.GetConnection(ctx, address)
conn, err := factory.GetConnectionWithRetry(ctx, address)
if err != nil {
return nil, fmt.Errorf("failed to create competition client: %w", err)
}