Skip to content

Commit 8eeb1d7

Browse files
committed
Add comments and linting for org
1 parent 78a0e2b commit 8eeb1d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

influxdb/src/client/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Client {
9393
} else {
9494
parameters.insert("db", database.into());
9595
}
96-
96+
9797
Client {
9898
url: Arc::new(url.into()),
9999
parameters: Arc::new(parameters),
@@ -150,6 +150,10 @@ impl Client {
150150
self
151151
}
152152

153+
/// Add organization to [`Client`](crate::Client)
154+
///
155+
/// This is designed for influxdb 2.0's backward-compatible API which
156+
/// requires organization by default.
153157
pub fn with_org<S>(mut self, org: S) -> Self
154158
where
155159
S: Into<String>,

0 commit comments

Comments
 (0)