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

View file

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