We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580acd1 commit cd13a46Copy full SHA for cd13a46
influxdb/src/client/mod.rs
@@ -88,8 +88,9 @@ impl Client {
88
}
89
90
/// Allows creation of custom http clients
91
- pub fn with_http_client<T: HttpClient>(&mut self, http_client: T) {
+ pub fn with_http_client<T: HttpClient>(mut self, http_client: T) -> Self {
92
self.client = SurfClient::with_http_client(http_client);
93
+ self
94
95
96
/// Returns the name of the database the client is using
0 commit comments