[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
|
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()
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package redis
|
package redis
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue