Skip to content

Commit cd13a46

Browse files
committed
return self
1 parent 580acd1 commit cd13a46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

influxdb/src/client/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ impl Client {
8888
}
8989

9090
/// Allows creation of custom http clients
91-
pub fn with_http_client<T: HttpClient>(&mut self, http_client: T) {
91+
pub fn with_http_client<T: HttpClient>(mut self, http_client: T) -> Self {
9292
self.client = SurfClient::with_http_client(http_client);
93+
self
9394
}
9495

9596
/// Returns the name of the database the client is using

0 commit comments

Comments
 (0)