mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 17:47:19 +00:00
@ -161,10 +161,7 @@ func InitEngine(ctx context.Context) error {
|
||||
// SetDefaultEngine sets the default engine for db
|
||||
func SetDefaultEngine(ctx context.Context, eng *xorm.Engine) {
|
||||
x = eng
|
||||
DefaultContext = &Context{
|
||||
Context: ctx,
|
||||
e: x,
|
||||
}
|
||||
DefaultContext = &Context{Context: ctx, engine: x}
|
||||
}
|
||||
|
||||
// UnsetDefaultEngine closes and unsets the default engine
|
||||
|
Reference in New Issue
Block a user