[lectures/07-sql] Some import fixes.
This commit is contained in:
parent
11eaa16551
commit
d12ea26dfb
2 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package redis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
|
|
Loading…
Reference in a new issue