diff --git a/pages/docs/dbresolver.md b/pages/docs/dbresolver.md index af3f486dac0..7968d24cc7e 100644 --- a/pages/docs/dbresolver.md +++ b/pages/docs/dbresolver.md @@ -33,7 +33,7 @@ db.Use(dbresolver.Register(dbresolver.Config{ // sources/replicas load balancing policy Policy: dbresolver.RandomPolicy{}, // print sources/replicas mode in logger - ResolverModeReplica: true, + TraceResolverMode: true, }).Register(dbresolver.Config{ // use `db1` as sources (DB's default connection), `db5` as replicas for `User`, `Address` Replicas: []gorm.Dialector{mysql.Open("db5_dsn")},