Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
token-bridge
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
movabridge
token-bridge
Commits
06722ace
Commit
06722ace
authored
Aug 20, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
865fbcd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
main.go
cmd/validator/main.go
+2
-0
dao.go
dao/dao.go
+0
-1
No files found.
cmd/validator/main.go
View file @
06722ace
...
@@ -29,6 +29,7 @@ func main() {
...
@@ -29,6 +29,7 @@ func main() {
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
err
)
}
}
d
.
Start
()
if
conf
.
Debug
{
if
conf
.
Debug
{
log
.
SetLevel
(
log
.
DebugLevel
)
log
.
SetLevel
(
log
.
DebugLevel
)
...
@@ -53,6 +54,7 @@ func main() {
...
@@ -53,6 +54,7 @@ func main() {
for
_
,
syncer
:=
range
syncers
{
for
_
,
syncer
:=
range
syncers
{
syncer
.
Stop
()
syncer
.
Stop
()
}
}
d
.
Stop
()
log
.
Info
(
"graceful shutdown completed"
)
log
.
Info
(
"graceful shutdown completed"
)
os
.
Exit
(
0
)
os
.
Exit
(
0
)
...
...
dao/dao.go
View file @
06722ace
...
@@ -84,7 +84,6 @@ func New(_c *config.Config) (dao *Dao, err error) {
...
@@ -84,7 +84,6 @@ func New(_c *config.Config) (dao *Dao, err error) {
func
(
d
*
Dao
)
Start
()
{
func
(
d
*
Dao
)
Start
()
{
d
.
wg
.
Add
(
1
)
d
.
wg
.
Add
(
1
)
go
d
.
HandleTasks
()
go
d
.
HandleTasks
()
}
}
func
(
d
*
Dao
)
Stop
()
{
func
(
d
*
Dao
)
Stop
()
{
...
...
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