Skip to content

Commit

Permalink
Merge pull request #36 from hidevopsio/refactor/instance-scope
Browse files Browse the repository at this point in the history
use prototype instead of request scope for middleware client
  • Loading branch information
john-deng authored Aug 25, 2024
2 parents 98ca992 + f815373 commit e01cf9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion starter/gorm/autoconfigure.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
const Profile = "gorm"

type DB struct {
at.Scope `value:"request"`
at.Scope `value:"prototype"`
*gorm.DB
}

Expand Down
2 changes: 1 addition & 1 deletion starter/redis/autoconfigure.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
const Profile = "redis"

type Client struct {
at.Scope `value:"request"`
at.Scope `value:"prototype"`

*redis.Client
}
Expand Down
2 changes: 1 addition & 1 deletion starter/sqlx/autoconfigure.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
const Profile = "sqlx"

type DB struct {
at.Scope `value:"request"`
at.Scope `value:"prototype"`
*sqlx.DB
}

Expand Down

0 comments on commit e01cf9a

Please sign in to comment.