Skip to content

Commit f58fa65

Browse files
committed
Fix httpClient initialization, assign it to class field instead of local variable.
1 parent 30718ef commit f58fa65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

trino-csharp/Trino.Client/StatementClientV1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ internal StatementClientV1(
146146
return sslPolicyErrors == SslPolicyErrors.None;
147147
};
148148

149-
HttpClient httpClient = new HttpClient(handler);
149+
this.httpClient = new HttpClient(handler);
150150
this.httpClient.Timeout = Constants.HttpConnectionTimeout;
151151

152152
if (!this.Session.Properties.CompressionDisabled)

0 commit comments

Comments
 (0)