This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
pushsync #1392
Closed
Closed
pushsync #1392
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
95bd89f
swarm: push sync
nonsense ea82e7d
storage/pushsync: update NetStore api from master
nonsense 930fda6
storage/pushsync: add sleeps and a bit more tracing, change subscript…
acud a0e01d9
chunk; fix "already exists" error tags.Uid no need for rng obj
zelig cd17977
storage/pushsync: fix storer initialisation
zelig 1d6ee6b
swarm: push sync
nonsense 8cb5558
chunk: tags improvement
zelig dc0c973
shed: linting fix
zelig 6a7e94b
pot: DistanceCmp opposite of ProxCmp reflecting doc
zelig 9e6f990
network: add IsClosestTo(addr, filter) using pot.DistanceCmp
zelig 61ca500
pss: fix hashpool init to use keccak256
zelig 32e04ae
pushsync, swarm.go: complete protocol - all tests pass non-flaky
zelig 9e6ec3c
api, chunk, network, pss, pushsync: act on review comments
zelig b229e87
pushsync: simulation test params for appveyor
zelig 0dbc1db
pushsync: asynchronous send in sync forever loop; disabled ordering test
nonsense 71436e1
api/http: remove periodicTagTrace
zelig 096b08f
pushsync: close item span at end of roundtrip
zelig cd49ab4
pushsync: amend pusher test, remove loopback sync option
zelig 55a4758
pushsync: if no new items set timer to half a second
zelig 048ca03
pushsync: address PR review feedback
zelig 1eb077e
pushsync, testutil: address review comments
zelig 68903b5
pss, pushsync: move digest out of critical section; async handle of r…
nonsense File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package pullsync | ||
|
||
import stream "github.com/ethersphere/swarm/network/stream/v2" | ||
|
||
|
||
|
||
// the node-wide pullsync.Client | ||
type Client struct { | ||
stream.Syncer // embed stream.Syncer | ||
// when pullsync | ||
// here you simply put the update sync logic listening to kademlia depth changes | ||
// and call `Request` | ||
// remember the request, when no longer relevant just call request.Cancel() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package pullsync | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And this file also is probably committed by mistake. |
||
|
||
// pullSync.Server implements stream.Provider | ||
// uses localstore SubscribePull for the bins | ||
// server is node-wide | ||
type Server struct { | ||
// ... | ||
*stream.LocalProvider | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose that this file is committed by mistake.