[lectures/07-sql] Some import fixes.

This commit is contained in:
Arseny Balobanov 2022-03-15 23:19:41 +03:00
parent 11eaa16551
commit d12ea26dfb
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,10 @@
package hasql package hasql
import ( import (
"context"
"database/sql"
"log" "log"
"time"
_ "github.com/jackc/pgx/v4/stdlib" _ "github.com/jackc/pgx/v4/stdlib"
"golang.yandex/hasql" "golang.yandex/hasql"
@ -24,7 +27,7 @@ func Open() {
log.Fatal(err) log.Fatal(err)
} }
log.Println("Node address", node.Addr) log.Println("Node address", node.Addr())
ctx, cancel := context.WithTimeout(context.Background(), time.Second) ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel() defer cancel()

View file

@ -1,6 +1,7 @@
package redis package redis
import ( import (
"context"
"log" "log"
"time" "time"