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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api, cmd, prod, pss, swarm: get publisher and query feed for chunk re…
…pair request (#2175) * prod: iterate getPinners func * storage, prod: add publisher param to recovery hook * prod: update TestRecoveryHook for new hook * prod: iterate handler use in recovery hook construction and invocation * prod: iterate handler use in recovery hook construction and invocation * feed: add FeedsHandler interface, DummyHandler struct, DummyHandler.Lookup and DummyHandler.GetContent funcs prod: change NewRecoveryHook and getPinners funcs handler params to FeedsHandler type * feed, prod: rename FeedsHandler interface to GenericHandler, move and comment feed package funcs * chunk, storage, prod: refine comments * prod, pss, trojan: extract RecoveryTopic var * swarm: use RecoveryTopic var * prod: add feed error vars * prod: fix topic for feed in getPinners func * prod: iterate tests * prod: refine error handling in getPinners * prod: update error var comments * prod: iterate comments in getPinners func * feed: small refactor to newDummyCacheEntry func * feed: fix comment in newDummyCacheEntry func * prod: iterate getPinners func * trojan: add Target alias for [][]byte and apply it to functions and tests * pss: use trojan.Targets type in func params * prod: use trojan.Targets type in func params, add json unmarshalling for fetched content feed in getPinners * prod: add ErrTargets var * pss: update tests to use trojan.Targets type * feed: add cacheEntry field to DummyHandler struct, add NewDummyHandler and SetContent funcs to DummyHandler, remove newDummyCacheEntry func * prod: add newTestRecoveryFeedHandler helper func to create mock feed handlers which retrieve content that can be unmarshalled as a trojan.Targets type * pss, trojan: fix typos * prod: add comment in getPinners func * prod: minor refactor to getPinners func * pss: minor refactor to pss tests * feeds: fix comment in TestHandler * feeds: fix comment in NewTestHandler func * feed: update DummyHandler comments * feed: small comment update * prod, pss: update TODOs * storage, prod: remove publisher param from store hook * swarm, prod, trojan: move recovery topic vars to prod package * api, storage: Publisher added to manifest, remove hardcoded value used for testing * pss: remove unnecessary dependency to prod package on pss test * api,api/client,api/http,cmd/swarm,cmd/swarm-smoke,prod,storage: added publish flag for swarm up command, added header publisher for uploadTar, replace prod with context publisher, updated tests to reflect these changes * api: remove test debug logs * api,prod: removed unnecessary publisher default value * api, api/http: fixed len check for publisher and also init value * api,prod: removed ctx and clear, moved todo for fallback flag to prod * prod: added timeout to ctx in getPinners Co-authored-by: santicomp2014 <[email protected]>
- Loading branch information
1 parent
9228d01
commit d91b839
Showing
15 changed files
with
156 additions
and
43 deletions.
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
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
Oops, something went wrong.