Skip to content

Commit

Permalink
Use included record parameter for ConnectionConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuvindu committed Mar 14, 2024
1 parent f83554a commit 3df37ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballerina/client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public isolated client class Client {
# + config - The configurations to be used when initializing the `connector`
# + serviceUrl - URL of the target service
# + return - An error if connector initialization failed
public isolated function init(string serviceUrl, ConnectionConfig config = {}) returns error? {
public isolated function init(string serviceUrl, *ConnectionConfig config) returns error? {
http:ClientConfiguration httpClientConfig = {httpVersion: config.httpVersion, timeout: config.timeout, forwarded: config.forwarded, poolConfig: config.poolConfig, compression: config.compression, circuitBreaker: config.circuitBreaker, retryConfig: config.retryConfig, validation: config.validation};
do {
if config.auth is http:ClientAuthConfig {
Expand Down

0 comments on commit 3df37ad

Please sign in to comment.