Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
653e8b9d
Unverified
Commit
653e8b9d
authored
Dec 27, 2020
by
jk-jeongkyun
Committed by
GitHub
Dec 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/downloader: remove unnecessary condition (#22052)
parent
ab0979f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
queue.go
eth/downloader/queue.go
+0
-3
No files found.
eth/downloader/queue.go
View file @
653e8b9d
...
@@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
...
@@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
return
accepted
,
nil
return
accepted
,
nil
}
}
// If none of the data was good, it's a stale delivery
// If none of the data was good, it's a stale delivery
if
errors
.
Is
(
failure
,
errInvalidChain
)
{
return
accepted
,
failure
}
if
accepted
>
0
{
if
accepted
>
0
{
return
accepted
,
fmt
.
Errorf
(
"partial failure: %v"
,
failure
)
return
accepted
,
fmt
.
Errorf
(
"partial failure: %v"
,
failure
)
}
}
...
...
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