feat(gw): added connection with retry
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user