Skip to content

Commit

Permalink
fix(doc): fix TCP sender examples
Browse files Browse the repository at this point in the history
  • Loading branch information
puzpuzpuz committed Mar 22, 2024
1 parent 0f785ff commit 3270b4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/tcp/auth-and-tls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func main() {
ctx := context.TODO()
sender, err := qdb.NewLineSender(
ctx,
qdb.WithTcp(),
qdb.WithAddress("localhost:9009"),
qdb.WithAuth(
"testUser1", // token name here
Expand Down
1 change: 1 addition & 0 deletions examples/tcp/auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func main() {
ctx := context.TODO()
sender, err := qdb.NewLineSender(
ctx,
qdb.WithTcp(),
qdb.WithAddress("localhost:9009"),
qdb.WithAuth(
"testUser1", // token name here
Expand Down
2 changes: 1 addition & 1 deletion examples/tcp/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func main() {
ctx := context.TODO()
// Connect to QuestDB running on 127.0.0.1:9009
sender, err := qdb.NewLineSender(ctx)
sender, err := qdb.NewLineSender(ctx, qdb.WithTcp())
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 3270b4d

Please sign in to comment.