Skip to content

Commit

Permalink
Add comments and linting for org
Browse files Browse the repository at this point in the history
  • Loading branch information
techster10173 committed Jun 6, 2024
1 parent 78a0e2b commit 8eeb1d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion influxdb/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Client {
} else {
parameters.insert("db", database.into());
}

Client {
url: Arc::new(url.into()),
parameters: Arc::new(parameters),
Expand Down Expand Up @@ -150,6 +150,10 @@ impl Client {
self
}

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

0 comments on commit 8eeb1d7

Please sign in to comment.