diff --git a/ballerina/client.bal b/ballerina/client.bal index 1a8ac6e..350156e 100644 --- a/ballerina/client.bal +++ b/ballerina/client.bal @@ -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 {