Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
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
vicotor
mybee
Commits
a1cb4f0b
Unverified
Commit
a1cb4f0b
authored
Jul 06, 2021
by
metacertain
Committed by
GitHub
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: only in neighborhood replication (#2237)
parent
67a4212e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
100 deletions
+102
-100
pushsync.go
pkg/pushsync/pushsync.go
+4
-0
pushsync_test.go
pkg/pushsync/pushsync_test.go
+98
-100
No files found.
pkg/pushsync/pushsync.go
View file @
a1cb4f0b
...
@@ -322,6 +322,10 @@ func (ps *PushSync) pushToClosest(ctx context.Context, ch swarm.Chunk, retryAllo
...
@@ -322,6 +322,10 @@ func (ps *PushSync) pushToClosest(ctx context.Context, ch swarm.Chunk, retryAllo
return
nil
,
ErrWarmup
return
nil
,
ErrWarmup
}
}
if
!
ps
.
topologyDriver
.
IsWithinDepth
(
ch
.
Address
())
{
return
nil
,
ErrNoPush
}
count
:=
0
count
:=
0
// Push the chunk to some peers in the neighborhood in parallel for replication.
// Push the chunk to some peers in the neighborhood in parallel for replication.
// Any errors here should NOT impact the rest of the handler.
// Any errors here should NOT impact the rest of the handler.
...
...
pkg/pushsync/pushsync_test.go
View file @
a1cb4f0b
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