mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
website/blog: minor fix to the entcache post
This commit is contained in:
@@ -139,7 +139,7 @@ if err != nil {
|
||||
log.Fatal("opening database", err)
|
||||
}
|
||||
// Decorates the sql.Driver with entcache.Driver.
|
||||
drv := entcache.NewDriver(drv)
|
||||
drv := entcache.NewDriver(db)
|
||||
// Create an ent.Client.
|
||||
client := ent.NewClient(ent.Driver(drv))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user