Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
chainweaver
ida
registration-service
Commits
6130c7fb
Commit
6130c7fb
authored
11 months ago
by
kunkkawu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix db init
parent
899f489b
master
develop
v2.0.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
internal/svc/servicecontext.go
internal/svc/servicecontext.go
+1
-1
No files found.
internal/svc/servicecontext.go
View file @
6130c7fb
...
...
@@ -36,7 +36,7 @@ type ServiceContext struct {
// NewServiceContext 实例化NewServiceContext
func
NewServiceContext
(
c
config
.
Config
)
*
ServiceContext
{
gormDb
,
err
:=
gorm_common
.
InitGorm
(
c
.
MysqlDNS
)
gormDb
,
err
:=
gorm_common
.
InitGorm
(
c
.
DBConf
)
if
err
!=
nil
{
panic
(
"连接mysql数据库失败, error="
+
err
.
Error
())
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment