Skip to content

Commit

Permalink
Fix API usage in examples (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoor authored Feb 27, 2025
1 parent cce3f19 commit f1f72dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

func main() {
ctx := context.Background()
client, err := gel.CreateClient(ctx, gelcfg.Options{})
client, err := gel.CreateClient(gelcfg.Options{})
if err != nil {
log.Fatal(err)
}
Expand Down
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//
// func main() {
// ctx := context.Background()
// client, err := gel.CreateClient(ctx, gelcfg.Options{})
// client, err := gel.CreateClient(gelcfg.Options{})
// if err != nil {
// log.Fatal(err)
// }
Expand All @@ -57,7 +57,7 @@
// You may also connect to a database using a DSN:
//
// dsn := "gel://edgedb@localhost/edgedb"
// client, err := gel.CreateClientDSN(ctx, dsn, opts)
// client, err := gel.CreateClientDSN(dsn, opts)
//
// Or you can use Option fields.
//
Expand All @@ -67,7 +67,7 @@
// Concurrency: 4,
// }
//
// client, err := gel.CreateClient(ctx, opts)
// client, err := gel.CreateClient(opts)
//
// # Errors
//
Expand Down

0 comments on commit f1f72dd

Please sign in to comment.