Skip to content

Commit

Permalink
Update dbresolver.md : change ResolverModeReplica to TraceResolverMode (
Browse files Browse the repository at this point in the history
  • Loading branch information
mojocn authored Aug 17, 2023
1 parent eb1a7b7 commit a931c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/dbresolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")},
Expand Down

0 comments on commit a931c98

Please sign in to comment.