docs: update put line

This commit is contained in:
Adam Ji 2023-04-23 10:16:59 +08:00
parent 14a76427f3
commit c405051bb3
1 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ async fn put_line() -> anyhow::Result<()> {
.build()?;
assert_eq!(client.put(&sml_data).await?, ());
// demo omit ttl by default
// demo with default ttl
let sml_data = SmlDataBuilder::default()
.db(db.to_string())
.protocol(SchemalessProtocol::Line)
@ -55,7 +55,7 @@ async fn put_line() -> anyhow::Result<()> {
.build()?;
assert_eq!(client.put(&sml_data).await?, ());
// demo omit ttl and req_id by default
// demo with default ttl and req_id
let sml_data = SmlDataBuilder::default()
.db(db.to_string())
.protocol(SchemalessProtocol::Line)
@ -64,7 +64,7 @@ async fn put_line() -> anyhow::Result<()> {
.build()?;
assert_eq!(client.put(&sml_data).await?, ());
// demo omit precision by default
// demo with default precision
let sml_data = SmlDataBuilder::default()
.db(db.to_string())
.protocol(SchemalessProtocol::Line)